1
0
forked from k-space/kube
kube/wildduck/wildflock.yaml

149 lines
3.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"
---
2024-07-27 20:50:53 +00:00
apiVersion: codemowers.cloud/v1beta1
kind: OIDCClient
2023-07-29 21:23:29 +00:00
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:
2023-08-19 07:01:09 +00:00
revisionHistoryLimit: 0
2023-07-29 21:23:29 +00:00
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
image: harbor.k-space.ee/k-space/wildflock:latest
2024-08-24 21:12:25 +00:00
resources:
limits:
cpu: 500m
memory: 200Mi
requests:
cpu: 1m
memory: 100Mi
2023-07-29 21:23:29 +00:00
ports:
- containerPort: 3030
env:
2023-08-13 15:38:26 +00:00
- name: REDIS_URL
valueFrom:
secretKeyRef:
2024-08-15 06:49:48 +00:00
name: session-storage
2024-08-15 06:37:24 +00:00
key: REDIS_WILDFLOCK_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
2023-08-27 17:24:36 +00:00
value: http://wildduck-api:8080
2023-07-29 21:23:29 +00:00
- name: WILDDUCK_TOKEN
valueFrom:
secretKeyRef:
name: wildduck
key: WILDDUCK_API_TOKEN
- name: SESSION_SECRET
valueFrom:
secretKeyRef:
name: wildflock
key: SESSION_SECRET
2024-07-27 20:50:53 +00:00
- name: OIDC_GATEWAY_URI
valueFrom:
secretKeyRef:
key: OIDC_IDP_URI
2024-08-15 06:37:24 +00:00
name: oidc-client-wildflock-owner-secrets
2024-07-27 20:50:53 +00:00
- name: OIDC_GATEWAY_AUTH_URI
valueFrom:
secretKeyRef:
key: OIDC_IDP_AUTH_URI
2024-08-15 06:37:24 +00:00
name: oidc-client-wildflock-owner-secrets
2024-07-27 20:50:53 +00:00
- name: OIDC_GATEWAY_TOKEN_URI
valueFrom:
secretKeyRef:
key: OIDC_IDP_TOKEN_URI
2024-08-15 06:37:24 +00:00
name: oidc-client-wildflock-owner-secrets
2024-07-27 20:50:53 +00:00
- name: OIDC_GATEWAY_USERINFO_URI
valueFrom:
secretKeyRef:
key: OIDC_IDP_USERINFO_URI
2024-08-15 06:37:24 +00:00
name: oidc-client-wildflock-owner-secrets
2023-07-29 21:23:29 +00:00
envFrom:
- secretRef:
2023-07-30 08:55:01 +00:00
name: oidc-client-wildflock-owner-secrets