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" . }} name: {{ include "shadowsocks-rust.fullname" . }}
labels: labels:
{{- include "shadowsocks-rust.labels" . | nindent 4 }} {{- include "shadowsocks-rust.labels" . | nindent 4 }}
annotations:
{{- range $key, $value := .Values.service.annotations }}
{{ $key }}: {{ $value | quote }}
{{- end }}
spec: spec:
type: {{ .Values.service.type }} type: {{ .Values.service.type }}
ports: ports:

View File

@@ -18,12 +18,14 @@ servers:
# Whether to download v2ray and xray plugin. # Whether to download v2ray and xray plugin.
downloadPlugins: false downloadPlugins: false
# Name of the ConfigMap with config.json configuration for shadowsocks-rust. # Name of the ConfigMap with config.json configuration for shadowsocks-rust.
configMapName: "" configMapName: ""
service: service:
# Change to LoadBalancer if you are behind a cloud provider like aws, gce, or tke. # Change to LoadBalancer if you are behind a cloud provider like aws, gce, or tke.
type: ClusterIP 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. # Bind shadowsocks port port to host, i.e., we can use host:port to access shawdowsocks server.
hostPort: false hostPort: false