mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +02:00
69 lines
1.6 KiB
YAML
69 lines
1.6 KiB
YAML
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: pomerium-authenticate-service
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
name: http
|
|
selector:
|
|
app: pomerium-authenticate
|
|
type: NodePort
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pomerium-authenticate
|
|
labels:
|
|
app: pomerium-authenticate
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: pomerium-authenticate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pomerium-authenticate
|
|
spec:
|
|
containers:
|
|
- image: pomerium/pomerium:main
|
|
name: pomerium-authenticate
|
|
args:
|
|
- --config=/etc/pomerium/config.yaml
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
protocol: TCP
|
|
env:
|
|
- name: SERVICES
|
|
value: authenticate
|
|
- name: SHARED_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: shared-secret
|
|
key: shared-secret
|
|
- name: COOKIE_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: cookie-secret
|
|
key: cookie-secret
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 80
|
|
scheme: HTTP
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 80
|
|
scheme: HTTP
|
|
initialDelaySeconds: 5
|
|
timeoutSeconds: 1
|
|
volumeMounts:
|
|
- mountPath: /etc/pomerium/
|
|
name: config
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: config
|