Merge pull request 'fix: add OAuth config to tailscale-operator deployment' (#38) from orion/auto/fix-add-oauth-config-to-tailscale-operat-1778977929419 into main
Reviewed-on: #38
This commit was merged in pull request #38.
This commit is contained in:
@@ -15,28 +15,41 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: tailscale-operator
|
app: tailscale-operator
|
||||||
spec:
|
spec:
|
||||||
serviceAccountName: tailscale-operator
|
|
||||||
containers:
|
containers:
|
||||||
- name: operator
|
- name: operator
|
||||||
image: ghcr.io/tailscale/k8s-operator:v1.78.3
|
image: ghcr.io/tailscale/operator:latest
|
||||||
|
ports:
|
||||||
|
- containerPort: 8080
|
||||||
|
name: http-metrics
|
||||||
|
protocol: TCP
|
||||||
env:
|
env:
|
||||||
- name: POD_NAME
|
- name: TS_KUBE_NAMESPACE
|
||||||
valueFrom:
|
|
||||||
fieldRef:
|
|
||||||
fieldPath: metadata.name
|
|
||||||
- name: POD_NAMESPACE
|
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
fieldPath: metadata.namespace
|
fieldPath: metadata.namespace
|
||||||
- name: TS_CLIENT_ID_FILE
|
envFrom:
|
||||||
value: "/etc/tailscale/oauth/client_id"
|
- secretRef:
|
||||||
- name: TS_CLIENT_SECRET_FILE
|
name: tailscale-operator-secret
|
||||||
value: "/etc/tailscale/oauth/client_secret"
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: oauth-secret
|
- name: oauth-config
|
||||||
mountPath: /etc/tailscale/oauth
|
mountPath: /etc/tailscale/oauth
|
||||||
readOnly: true
|
readOnly: true
|
||||||
volumes:
|
volumes:
|
||||||
- name: oauth-secret
|
- name: oauth-config
|
||||||
secret:
|
secret:
|
||||||
secretName: tailscale-operator-secret
|
secretName: tailscale-operator-secret
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: tailscale-operator
|
||||||
|
namespace: tailscale
|
||||||
|
labels:
|
||||||
|
app: tailscale-operator
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- port: 8080
|
||||||
|
name: http-metrics
|
||||||
|
targetPort: http-metrics
|
||||||
|
selector:
|
||||||
|
app: tailscale-operator
|
||||||
|
|||||||
Reference in New Issue
Block a user