oidc-test-client/deployment.yaml

68 lines
1.4 KiB
YAML
Raw Normal View History

2023-03-20 19:28:14 +00:00
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: oidc-test-client
annotations:
kubernetes.io/ingress.class: shared
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik.codemowers.ee
spec:
rules:
- host: client-gab7y.codemowers.ee
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: oidc-test-client
port:
number: 3000
tls:
- hosts:
- "*.codemowers.ee"
---
apiVersion: v1
kind: Service
metadata:
name: oidc-test-client
spec:
type: ClusterIP
selector:
app: oidc-test-client
ports:
- protocol: TCP
port: 3000
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: oidc-test-client
labels:
app: oidc-test-client
spec:
selector:
matchLabels:
app: oidc-test-client
replicas: 1
template:
metadata:
labels:
app: oidc-test-client
spec:
containers:
- name: oidc-test-client
image: oidc-test-client
ports:
- containerPort: 3000
2023-04-13 19:31:48 +00:00
env:
- name: CLIENT_URL
2023-04-13 19:38:54 +00:00
value: https://client-gab7y.codemowers.ee
2023-04-13 19:31:48 +00:00
envFrom:
- secretRef:
name: oidc-client-authorization-code-sample-client-owner-secrets