Skip to content

Commit

Permalink
Merge pull request #56 from acamilleri/feat/add-additional-values-set…
Browse files Browse the repository at this point in the history
…tings

feat(kube-vip): add support for volumes and hostaliases configuration
  • Loading branch information
thebsdbox authored Nov 28, 2024
2 parents 3e1c50f + ecb07a2 commit f256955
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-vip/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.3
version: 0.6.4

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down
12 changes: 12 additions & 0 deletions charts/kube-vip/templates/daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,14 @@ spec:
{{- toYaml .Values.resources | nindent 10 }}
securityContext:
{{- toYaml .Values.securityContext | nindent 10 }}
{{- with .Values.volumeMounts }}
volumeMounts:
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.hostAliases }}
hostAliases:
{{- toYaml . | nindent 8 }}
{{- end }}
hostNetwork: true
serviceAccountName: {{ include "kube-vip.name" . }}
{{- with .Values.nodeSelector }}
Expand All @@ -70,6 +78,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.volumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
Expand Down
18 changes: 18 additions & 0 deletions charts/kube-vip/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,24 @@ resources: {}
# cpu: 100m
# memory: 128Mi

volumes: []
# Specify additional volumes
# - hostPath:
# path: /etc/rancher/k3s/k3s.yaml
# type: File
# name: kubeconfig

volumeMounts: []
# Specify additional volume mounts
# - mountPath: /etc/kubernetes/admin.conf
# name: kubeconfig

hostAliases: []
# Specify additional host aliases
# - hostnames:
# - kubernetes
# ip: 127.0.0.1

nodeSelector: {}

tolerations:
Expand Down

0 comments on commit f256955

Please sign in to comment.