diff --git a/charts/box/Chart.yaml b/charts/box/Chart.yaml index d8d4983..e7d2476 100644 --- a/charts/box/Chart.yaml +++ b/charts/box/Chart.yaml @@ -1,3 +1,3 @@ apiVersion: v2 name: box -version: 0.1.1 +version: 0.1.0 diff --git a/charts/box/templates/deployment.yaml b/charts/box/templates/deployment.yaml index 0d283c0..20b1128 100644 --- a/charts/box/templates/deployment.yaml +++ b/charts/box/templates/deployment.yaml @@ -25,7 +25,6 @@ spec: {{- end }} spec: containers: - # main - name: {{ include "application.repository" . }} image: "{{ .Values.image.repository }}:{{ .Values.image.version }}" imagePullPolicy: {{ .Values.image.pullPolicy }} @@ -50,39 +49,3 @@ spec: resources: {{- toYaml . | nindent 10 }} {{- end }} - # sidecar vpn - {{- if .Values.vpn.enabled }} - - name: "sidecar-vpn" - image: "{{ .Values.vpn.image.repository }}:{{ .Values.vpn.image.version }}" - imagePullPolicy: {{ .Values.vpn.image.pullPolicy }} - env: - - name: OPENVPN_CONFIG - value: "{{ .Values.vpn.secret.basePath }}/{{ .Values.vpn.secret.path }}" - securityContext: - capabilities: - add: ["NET_ADMIN"] - volumeMounts: - - name: tun-device-volume - mountPath: /dev/net/tun - readOnly: true - - name: {{ .Values.vpn.secret.volumeName }} - mountPath: {{ .Values.vpn.secret.basePath }} - readOnly: true - {{- end }} - # volumes - {{- if .Values.vpn.enabled }} - volumes: - {{- if .Values.vpn.enabled }} - - name: tun-device-volume - hostPath: - path: /dev/net/tun - {{- end }} - {{- if .Values.vpn.secret.create }} - - name: {{ .Values.vpn.secret.volumeName }} - secret: - secretName: {{ include "application.fullname" . }}-sidecar-vpn-secret - items: - - key: openvpn-config - path: {{ .Values.vpn.secret.path }} - {{- end }} - {{- end }} diff --git a/charts/box/templates/secret.yaml b/charts/box/templates/secret.yaml deleted file mode 100644 index e0746f7..0000000 --- a/charts/box/templates/secret.yaml +++ /dev/null @@ -1,10 +0,0 @@ -{{- if .Values.vpn.secret.create }} ---- -apiVersion: v1 -kind: Secret -metadata: - name: {{ include "application.fullname" . }}-sidecar-vpn-secret -type: Opaque -data: - openvpn-config: {{ .Values.vpn.secret.value | b64enc }} -{{ end }} diff --git a/charts/box/values.yaml b/charts/box/values.yaml index 6e15b8e..ea76ce5 100644 --- a/charts/box/values.yaml +++ b/charts/box/values.yaml @@ -38,16 +38,3 @@ resources: {} # cpu: 500m # limits: # memory: 512Mi - -vpn: - enabled: false - image: - repository: hckops/alpine-openvpn - version: latest - pullPolicy: Always - secret: - create: false - volumeName: sidecar-vpn-volume - basePath: /secrets - path: openvpn/client.ovpn - value: INVALID_SECRET