2020-04-24 14:22:29 +01:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: traefik-forward-auth
|
|
|
|
labels:
|
|
|
|
app: traefik-forward-auth
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: traefik-forward-auth
|
|
|
|
strategy:
|
|
|
|
type: Recreate
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: traefik-forward-auth
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 60
|
|
|
|
containers:
|
|
|
|
- image: thomseddon/traefik-forward-auth:2
|
|
|
|
name: traefik-forward-auth
|
|
|
|
ports:
|
|
|
|
- containerPort: 4181
|
|
|
|
protocol: TCP
|
|
|
|
env:
|
|
|
|
- name: CONFIG
|
|
|
|
value: "/config"
|
|
|
|
- name: DOMAIN
|
|
|
|
value: "example.com"
|
2020-04-28 17:15:53 +01:00
|
|
|
# INSECURE_COOKIE is required unless using https entrypoint
|
|
|
|
- name: INSECURE_COOKIE
|
|
|
|
value: "true"
|
2020-04-24 14:22:29 +01:00
|
|
|
# Remove COOKIE_DOMAIN if not using auth host mode
|
|
|
|
- name: COOKIE_DOMAIN
|
|
|
|
value: "example.com"
|
|
|
|
# Remove AUTH_HOST if not using auth host mode
|
|
|
|
- name: AUTH_HOST
|
|
|
|
value: "auth.example.com"
|
|
|
|
- name: LOG_LEVEL
|
|
|
|
value: "info"
|
|
|
|
- name: PROVIDERS_GOOGLE_CLIENT_ID
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2020-05-26 08:12:26 -05:00
|
|
|
name: traefik-forward-auth-secrets
|
2020-04-24 14:22:29 +01:00
|
|
|
key: google-client-id
|
|
|
|
- name: PROVIDERS_GOOGLE_CLIENT_SECRET
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2020-05-26 08:12:26 -05:00
|
|
|
name: traefik-forward-auth-secrets
|
2020-04-24 14:22:29 +01:00
|
|
|
key: google-client-secret
|
2020-04-28 17:15:53 +01:00
|
|
|
- name: SECRET
|
2020-04-24 14:22:29 +01:00
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
2020-05-26 08:12:26 -05:00
|
|
|
name: traefik-forward-auth-secrets
|
2020-04-28 17:15:53 +01:00
|
|
|
key: secret
|
2020-04-24 14:22:29 +01:00
|
|
|
volumeMounts:
|
|
|
|
- name: configs
|
|
|
|
mountPath: /config
|
|
|
|
subPath: traefik-forward-auth.ini
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: configs
|
|
|
|
configMap:
|
|
|
|
name: configs
|
2020-05-26 08:12:26 -05:00
|
|
|
- name: traefik-forward-auth-secrets
|
2020-04-24 14:22:29 +01:00
|
|
|
secret:
|
|
|
|
secretName: secrets
|