Skip to content

Commit

Permalink
build(helm): add hostNetwork for manager pod
Browse files Browse the repository at this point in the history
  • Loading branch information
alegrey91 authored and prometherion committed Jun 29, 2021
1 parent 184f054 commit 1734c90
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/capsule/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ include "capsule.serviceAccountName" . }}
{{- if .Values.manager.hostNetwork }}
hostNetwork: true
{{- end }}
priorityClassName: {{ .Values.priorityClassName }}
{{- with .Values.nodeSelector }}
nodeSelector:
Expand Down
8 changes: 8 additions & 0 deletions charts/capsule/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ manager:
repository: quay.io/clastix/capsule
pullPolicy: IfNotPresent
tag: ''

# Specifies if the container should be started in hostNetwork mode.
#
# Required for use in some managed kubernetes clusters (such as AWS EKS) with custom
# CNI (such as calico), because control-plane managed by AWS cannot communicate
# with pods' IP CIDR and admission webhooks are not working
hostNetwork: false

# Additional Capsule options
options:
logLevel: '4'
Expand Down

0 comments on commit 1734c90

Please sign in to comment.