diff --git a/charts/envoy/templates/secret.yaml b/charts/envoy/templates/secret.yaml new file mode 100644 index 0000000..0c8e2d2 --- /dev/null +++ b/charts/envoy/templates/secret.yaml @@ -0,0 +1,13 @@ +{{- $fullname := include "envoy.fullname" . -}} +{{- $namespace := .Release.Namespace -}} +{{- $labels := include "envoy.labels" . -}} +{{- with .Values.secret }} +apiVersion: v1 +kind: Secret +metadata: + name: {{ $fullname }} + namespace: {{ $namespace }} + labels: + {{- $labels | nindent 4 }} +{{- toYaml . | nindent 0 }} +{{- end }} \ No newline at end of file diff --git a/charts/envoy/templates/service.yaml b/charts/envoy/templates/service.yaml index 969d212..28e7339 100644 --- a/charts/envoy/templates/service.yaml +++ b/charts/envoy/templates/service.yaml @@ -16,5 +16,8 @@ spec: targetPort: http protocol: TCP name: http + {{- with .Values.service.loadBalancerIP }} + loadBalancerIP: {{ . }} + {{- end }} selector: {{- include "envoy.selectorLabels" . | nindent 4 }} diff --git a/charts/envoy/values.yaml b/charts/envoy/values.yaml index 3e65482..9ba0499 100644 --- a/charts/envoy/values.yaml +++ b/charts/envoy/values.yaml @@ -43,6 +43,8 @@ service: type: ClusterIP # service.port -- service port port: 80 + # service.loadBalancerIP -- IP of service load balancer + loadBalancerIP: "" # service.annotations -- annotations to add to the service annotations: {} @@ -91,6 +93,12 @@ volumes: # - name: data # emptyDir: {} +# secret -- secret +secret: + # type: Opaque + # data: {} + # stringData: {} + # env -- environment variables for the deployment env: # - name: NODE_LABEL_REGION