Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helm: add service annotations #932

Merged
merged 1 commit into from
Aug 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions k8s/chart/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 3 additions & 1 deletion k8s/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@ servers:
# Whether to download v2ray and xray plugin.
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: ""

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