wildflock/deployment.yaml

109 lines
2.5 KiB
YAML
Raw Normal View History

2023-07-29 18:10:00 +00:00
---
apiVersion: codemowers.io/v1alpha1
kind: OIDCGWClient
metadata:
name: walias
spec:
uri: "https://walias-msergo.codemowers.ee/auth-oidc"
redirectUris:
- "https://walias-msergo.codemowers.ee/auth-oidc/callback"
grantTypes:
- "authorization_code"
- "refresh_token" # might be supported by some implementations
responseTypes:
- "code"
availableScopes:
- "openid"
- "profile"
- "offline_access"
tokenEndpointAuthMethod: "client_secret_basic"
pkce: true
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: walias
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: walias-msergo.codemowers.ee
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: walias
port:
number: 3030
tls:
- hosts:
- "*.codemowers.ee"
---
apiVersion: v1
kind: Service
metadata:
name: walias
spec:
type: ClusterIP
selector:
app: walias
ports:
- protocol: TCP
port: 3030
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: walias
labels:
app: walias
spec:
selector:
matchLabels:
app: walias
replicas: 1
template:
metadata:
labels:
app: walias
spec:
containers:
- name: walias
image: walias
ports:
- containerPort: 3030
env:
- name: CLIENT_URL
value: https://walias-msergo.codemowers.ee
- name: NODE_ENV
value: prod
2023-07-29 20:06:08 +00:00
- name: WILDDUCK_URL
valueFrom:
secretKeyRef:
name: walias-secrets
key: WILDDUCK_URL
- name: WILDDUCK_TOKEN
valueFrom:
secretKeyRef:
name: walias-secrets
key: WILDDUCK_TOKEN
- name: WILDDUCK_DOMAIN
valueFrom:
secretKeyRef:
name: walias-secrets
key: WILDDUCK_DOMAIN
2023-08-05 08:48:46 +00:00
- name: REDIS_URL
2023-08-12 07:56:16 +00:00
valueFrom:
secretKeyRef:
name: redis-walias-cache-owner-secrets
key: REDIS_MASTER_URI
2023-07-29 18:10:00 +00:00
envFrom:
- secretRef:
name: oidc-client-walias-owner-secrets