Helm: add service annotations

This commit is contained in:
Lev Lunev
2022-07-26 16:49:02 +03:00
committed by ty
parent daf28e1997
commit 0afab23156
2 changed files with 7 additions and 1 deletions

View File

@@ -4,6 +4,10 @@ metadata:
name: {{ include "shadowsocks-rust.fullname" . }}
labels:
{{- include "shadowsocks-rust.labels" . | nindent 4 }}
annotations:
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
type: {{ .Values.service.type }}
ports:

View File

@@ -24,6 +24,8 @@ configMapName: ""
service:
# Change to LoadBalancer if you are behind a cloud provider like aws, gce, or tke.
type: ClusterIP
# external-dns.alpha.kubernetes.io/hostname: socks.example.com
annotations: {}
# Bind shadowsocks port port to host, i.e., we can use host:port to access shawdowsocks server.
hostPort: false