1+ # metadata: Specifies the name and namespace of the custom resource.
2+ # spec.ai: Defines AI-related configurations, including backend, models, and optional parameters like anonymized data and retries.
3+ # spec.customAnalyzers: Configures additional custom analyzers, with URLs and ports for connections.
4+ # spec.extraOptions: Includes extra configurations like enabling Backstage integration.
5+ # spec.filters: Sets up filters for resource analysis.
6+ # spec.imagePullSecrets: References secrets for pulling images from private registries.
7+ # spec.integrations: Configures integrations such as Trivy.
8+ # spec.kubeconfig: Specifies a custom kubeconfig secret, if needed.
9+ # spec.noCache: Indicates whether caching is disabled.
10+ # spec.nodeSelector: Allows pod scheduling constraints based on node labels.
11+ # spec.remoteCache: Configures remote caching options like Azure, GCS, or S3.
12+ # spec.repository: Specifies the container image repository.
13+ # spec.sink: Configures notification sinks, e.g., Slack, with webhook and authentication details.
14+ # spec.targetNamespace: Target namespace for the resource.
15+ # spec.version: Version of K8sGPT to use.
16+ # status: Placeholder for status, typically managed by the operator.
17+ apiVersion : core.k8sgpt.ai/v1alpha1
18+ kind : K8sGPT
19+ metadata :
20+ name : example-k8sgpt
21+ namespace : default
22+ spec :
23+ ai :
24+ anonymized : false
25+ backOff :
26+ enabled : true
27+ maxRetries : 10
28+ backend : openai
29+ baseUrl : " https://api.openai.com"
30+ enabled : true
31+ engine : " davinci"
32+ language : " english"
33+ maxTokens : " 4096"
34+ model : " gpt-4"
35+ providerId : " provider-123"
36+ proxyEndpoint : " http://proxy.example.com"
37+ region : " us-east-1"
38+ secret :
39+ name : openai-secret
40+ key : api-key
41+ topk : " 100"
42+ customAnalyzers :
43+ - name : " custom-analyzer-1"
44+ connection :
45+ url : " http://analyzer-1.example.com"
46+ port : 8080
47+ - name : " custom-analyzer-2"
48+ connection :
49+ url : " http://analyzer-2.example.com"
50+ port : 9090
51+ extraOptions :
52+ backstage :
53+ enabled : true
54+ filters :
55+ - " PodNotReady"
56+ - " MemoryPressure"
57+ imagePullSecrets :
58+ - name : my-image-pull-secret
59+ integrations :
60+ trivy :
61+ enabled : true
62+ namespace : " trivy-namespace"
63+ skipInstall : false
64+ kubeconfig :
65+ name : kubeconfig-secret
66+ key : config
67+ noCache : true
68+ nodeSelector :
69+ disktype : ssd
70+ env : production
71+ remoteCache :
72+ azure :
73+ containerName : " azure-container"
74+ storageAccount : " azure-storage-account"
75+ credentials :
76+ name : " azure-credentials"
77+ gcs :
78+ bucketName : " gcs-bucket"
79+ projectId : " gcs-project-id"
80+ region : " us-central1"
81+ interplex :
82+ endpoint : " http://interplex.example.com"
83+ s3 :
84+ bucketName : " s3-bucket"
85+ region : " us-west-2"
86+ repository : ghcr.io/k8sgpt-ai/k8sgpt
87+ sink :
88+ type : slack
89+ channel : " #alerts"
90+ username : " k8sgpt-bot"
91+ icon_url : " https://example.com/icon.png"
92+ webhook : " https://hooks.slack.com/services/..."
93+ secret :
94+ name : slack-webhook-secret
95+ key : webhook-url
96+ targetNamespace : " default"
97+ version : " latest"
98+ status : {}
0 commit comments