Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
ChandonPierre committed Jun 20, 2024
1 parent 7700f28 commit 1457d01
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ WORKDIR /app
ARG DEBIAN_FRONTEND=noninteractive

COPY --from=builder /go/bin/derper .
COPY --from=builder /go/bin/derpprobe .
COPY Docker/entrypoint.sh /app/entrypoint.sh

RUN apt-get update && \
Expand Down
4 changes: 2 additions & 2 deletions chart/tailscale-derp/templates/cert.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ metadata:
name: {{ .Release.Name }}-cert
namespace: {{ .Release.Namespace }}
spec:
commonName: '{{ (.Values.tls).domain }}'
commonName: '{{ tpl ((.Values.tls).domain) . }}'
dnsNames:
- '{{ (.Values.tls).domain }}'
- '{{ tpl ((.Values.tls).domain) . }}'
issuerRef:
kind: ClusterIssuer
name: {{ (.Values.tls).clusterIssuer | default "letsencrypt-prod" }}
Expand Down
4 changes: 2 additions & 2 deletions chart/tailscale-derp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ metadata:
labels:
{{- include "tailscale-derp.labels" . | nindent 4 }}
spec:
strategy:
type: Recreate
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
Expand All @@ -19,8 +21,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
strategy:
type: Recreate
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
4 changes: 2 additions & 2 deletions chart/tailscale-derp/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ metadata:
name: {{ include "tailscale-derp.fullname" . }}
labels:
{{- include "tailscale-derp.labels" . | nindent 4 }}
annotations: {{- ((.Values).service).annotations | toYaml | nindent 4}}
annotations: {{- tpl (((.Values).service).annotations | toYaml ) . | nindent 4}}
spec:
internalTrafficPolicy: {{ .Values.service.internalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
Expand All @@ -26,7 +26,7 @@ spec:
apiVersion: v1
kind: Service
metadata:
annotations: {{- (((.Values).service).directAttach).annotations | toYaml | nindent 4}}
annotations: {{- tpl ((((.Values).service).directAttach).annotations | toYaml) . | nindent 4}}
labels:
{{- include "tailscale-derp.labels" . | nindent 4 }}
name: {{ include "tailscale-derp.fullname" . }}-direct
Expand Down

0 comments on commit 1457d01

Please sign in to comment.