Skip to content

Commit

Permalink
Additional k8s tentacle updates to support configuration stored in co…
Browse files Browse the repository at this point in the history
…nfig map (#34)

* Add blank configmap so it's removed when you uninstall helm chart

* set instanceName so that each tentacle on a cluster is uniquely named.

* Make instanceName title case

* Add ability to specify arm container for nfs

* Add changeset

* Fix config map
  • Loading branch information
scme0 authored Jan 16, 2024
1 parent 65bf6c8 commit bb9057a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
5 changes: 5 additions & 0 deletions charts/kubernetes-tentacle/.changeset/stupid-rivers-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"kubernetes-tentacle": patch
---

Add minor changes to support tentacles using configmap for configuration storage
4 changes: 2 additions & 2 deletions charts/kubernetes-tentacle/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions charts/kubernetes-tentacle/templates/configmap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: tentacle-config
namespace: {{ .Release.Namespace | quote }}
2 changes: 1 addition & 1 deletion charts/kubernetes-tentacle/templates/nfs-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ spec:
serviceAccountName: {{ include "kubernetes-tentacle.serviceAccountName" . }}
containers:
- name: {{ printf "%s-nfs" .Chart.Name }}
image: itsthenetwork/nfs-server-alpine:latest
image: "itsthenetwork/nfs-server-alpine:latest{{ .Values.development.nfs.useArmContainer | ternary "-arm" "" }}"
securityContext:
privileged: true
env:
Expand Down
4 changes: 4 additions & 0 deletions charts/kubernetes-tentacle/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,7 @@ volumeMounts: []
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true

development:
nfs:
useArmContainer: false

0 comments on commit bb9057a

Please sign in to comment.