Skip to content

Commit

Permalink
Merge pull request #31 from mansunkuo/master
Browse files Browse the repository at this point in the history
Add secret and loadBalancerIP
  • Loading branch information
slamdev authored Jun 1, 2022
2 parents a613a05 + a5e8e27 commit e666993
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
13 changes: 13 additions & 0 deletions charts/envoy/templates/secret.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 3 additions & 0 deletions charts/envoy/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,8 @@ spec:
targetPort: http
protocol: TCP
name: http
{{- with .Values.service.loadBalancerIP }}
loadBalancerIP: {{ . }}
{{- end }}
selector:
{{- include "envoy.selectorLabels" . | nindent 4 }}
8 changes: 8 additions & 0 deletions charts/envoy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: {}

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e666993

Please sign in to comment.