kube/wildduck/wildflock.yaml

121 lines
2.7 KiB
YAML
Raw Normal View History

2023-07-29 21:23:29 +00:00
---
apiVersion: codemowers.cloud/v1beta1
kind: SecretClaim
metadata:
name: wildflock
spec:
size: 32
mapping:
- key: SESSION_SECRET
value: "%(plaintext)s"
---
2023-07-29 21:23:29 +00:00
apiVersion: codemowers.io/v1alpha1
kind: OIDCGWClient
metadata:
2023-07-30 08:55:01 +00:00
name: wildflock
2023-07-29 21:23:29 +00:00
spec:
2023-08-17 08:58:38 +00:00
allowedGroups:
- k-space:floor
- k-space:friends
2023-07-29 21:23:29 +00:00
displayName: Wildduck disposable alias generator
2023-07-30 08:55:01 +00:00
uri: "https://wildflock.k-space.ee/auth-oidc"
2023-07-29 21:23:29 +00:00
redirectUris:
2023-07-30 08:55:01 +00:00
- "https://wildflock.k-space.ee/auth-oidc/callback"
2023-07-29 21:23:29 +00:00
grantTypes:
- "authorization_code"
- "refresh_token"
responseTypes:
- "code"
availableScopes:
- "openid"
- "profile"
- "offline_access"
tokenEndpointAuthMethod: "client_secret_basic"
pkce: true
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
2023-07-30 08:55:01 +00:00
name: wildflock
2023-07-29 21:23:29 +00:00
annotations:
kubernetes.io/ingress.class: traefik
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
external-dns.alpha.kubernetes.io/target: traefik.k-space.ee
spec:
rules:
2023-07-30 08:55:01 +00:00
- host: wildflock.k-space.ee
2023-07-29 21:23:29 +00:00
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
2023-07-30 08:55:01 +00:00
name: wildflock
2023-07-29 21:23:29 +00:00
port:
number: 3030
tls:
- hosts:
- "*.k-space.ee"
---
apiVersion: v1
kind: Service
metadata:
2023-07-30 08:55:01 +00:00
name: wildflock
2023-07-29 21:23:29 +00:00
spec:
type: ClusterIP
selector:
2023-07-30 08:55:01 +00:00
app: wildflock
2023-07-29 21:23:29 +00:00
ports:
- protocol: TCP
port: 3030
---
apiVersion: apps/v1
kind: Deployment
metadata:
2023-07-30 08:55:01 +00:00
name: wildflock
2023-07-29 21:23:29 +00:00
labels:
2023-07-30 08:55:01 +00:00
app: wildflock
2023-07-29 21:23:29 +00:00
spec:
selector:
matchLabels:
2023-07-30 08:55:01 +00:00
app: wildflock
2023-08-13 15:38:26 +00:00
replicas: 2
2023-07-29 21:23:29 +00:00
template:
metadata:
labels:
2023-07-30 08:55:01 +00:00
app: wildflock
2023-07-29 21:23:29 +00:00
spec:
containers:
2023-07-30 08:55:01 +00:00
- name: wildflock
2023-07-29 21:23:29 +00:00
image: harbor.k-space.ee/k-space/walias:latest
ports:
- containerPort: 3030
env:
2023-08-13 15:38:26 +00:00
- name: REDIS_URL
valueFrom:
secretKeyRef:
name: redis-webmail-owner-secrets
key: REDIS_MASTER_1_URI
2023-07-29 21:23:29 +00:00
- name: CLIENT_URL
2023-07-30 08:55:01 +00:00
value: https://wildflock.k-space.ee
2023-07-29 21:23:29 +00:00
- name: WILDDUCK_DOMAIN
value: k6.ee
- name: NODE_ENV
value: prod
- name: WILDDUCK_URL
value: https://mail.k-space.ee
- name: WILDDUCK_TOKEN
valueFrom:
secretKeyRef:
name: wildduck
key: WILDDUCK_API_TOKEN
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
name: wildflock
key: SESSION_SECRET
2023-07-29 21:23:29 +00:00
envFrom:
- secretRef:
2023-07-30 08:55:01 +00:00
name: oidc-client-wildflock-owner-secrets