Skip to content

Commit 178615e

Browse files
authored
chore: local example interplex (#640)
* chore: correcting demo namespace Signed-off-by: AlexsJones <alexsimonjones@gmail.com> * chore: updated local example to use interplex Signed-off-by: AlexsJones <alexsimonjones@gmail.com> --------- Signed-off-by: AlexsJones <alexsimonjones@gmail.com>
1 parent 86bbe1b commit 178615e

File tree

2 files changed

+33
-5
lines changed

2 files changed

+33
-5
lines changed

Makefile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ help: ## Display this help.
4545
manifests: controller-gen ## Generate WebhookConfiguration, ClusterRole and CustomResourceDefinition objects.
4646
$(CONTROLLER_GEN) rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
4747

48+
.PHONY: list
49+
list:
50+
@$(MAKE) -p | \
51+
awk -F':' '/^[a-zA-Z0-9_-]+:([^=]|$$)/ {print $$1}' | \
52+
grep -v '$(MAKEFILE_LIST)' | \
53+
sort | \
54+
uniq
55+
4856
.PHONY: generate
4957
generate: controller-gen ## Generate code containing DeepCopy, DeepCopyInto, and DeepCopyObject method implementations.
5058
$(CONTROLLER_GEN) object:headerFile="hack/boilerplate.go.txt" paths="./..."
@@ -226,15 +234,11 @@ endif
226234
kubectl create secret generic k8sgpt-sample-secret --from-literal=openai-api-key="$(OPENAI_TOKEN)" -n $(NAMESPACE); \
227235
fi
228236
@echo "Applying valid_k8sgpt_remediation_sample.yaml..."
229-
kubectl apply -f config/samples/autoremediation/valid_k8sgpt_remediation_sample.yaml
237+
kubectl apply -f config/samples/autoremediation/valid_k8sgpt_remediation_with_interplex.yaml -n $(NAMESPACE)
230238
@echo "Applying deployment_missing_image.yaml..."
231239
kubectl apply -f config/samples/autoremediation/deployment_missing_image.yaml
232240

233241
.PHONY: local-cleanup
234242
local-cleanup: ## Cleanup local k8sgpt environment
235243
@echo "Cleaning up..."
236-
kubectl delete -f config/samples/autoremediation/deployment_missing_image.yaml || true
237-
kubectl delete -f config/samples/autoremediation/valid_k8sgpt_remediation_sample.yaml || true
238-
kubectl delete secret k8sgpt-sample-secret -n $(NAMESPACE) || true
239-
helm uninstall $(HELM_RELEASE_NAME) -n $(NAMESPACE) || true
240244
kind delete cluster --name $(KIND_CLUSTER_NAME) || true
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
apiVersion: core.k8sgpt.ai/v1alpha1
2+
kind: K8sGPT
3+
metadata:
4+
name: k8sgpt-auto-remediation-sample
5+
spec:
6+
ai:
7+
autoRemediation:
8+
enabled: true
9+
similarityRequirement: "90"
10+
resources:
11+
- Pod
12+
- Service
13+
- Deployment
14+
enabled: true
15+
model: gpt-4o-mini
16+
backend: openai
17+
secret:
18+
name: k8sgpt-sample-secret
19+
key: openai-api-key
20+
remoteCache:
21+
interplex:
22+
endpoint: release-interplex-service.k8sgpt-operator-system.svc.cluster.local:8084
23+
repository: ghcr.io/k8sgpt-ai/k8sgpt
24+
version: v0.4.1

0 commit comments

Comments
 (0)