strato-infra/flux/cluster/apps/misc/cdn-control/deployment.yaml

54 lines
1.4 KiB
YAML
Raw Normal View History

2022-05-24 22:50:01 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: cdn-deployment
2022-05-24 23:11:23 +02:00
namespace: misc
2022-05-24 22:50:01 +02:00
labels:
app: cdn-deployment
keel.sh/policy: force
keel.sh/match-tag: "true"
spec:
replicas: 1
selector:
matchLabels:
app: cdn-deployment
template:
metadata:
labels:
app: cdn-deployment
spec:
containers:
- name: cdn-deployment
imagePullPolicy: Always
image: registry.asraphiel.dev/library/cdn-control:main
ports:
- containerPort: 8080
2022-05-24 23:14:57 +02:00
env:
- name: CDN_ACCESS_KEY
valueFrom:
secretKeyRef:
name: cdn-secrets
key: access-key
- name: CDN_SECRET_KEY
valueFrom:
secretKeyRef:
name: cdn-secrets
key: secret-key
- name: CDN_ENDPOINT
valueFrom:
secretKeyRef:
name: cdn-secrets
key: endpoint
- name: CDN_BASE_PATH
valueFrom:
secretKeyRef:
name: cdn-secrets
key: base-path
- name: CDN_BUCKET
valueFrom:
secretKeyRef:
name: cdn-secrets
key: bucket
2022-05-24 22:50:01 +02:00
imagePullSecrets:
- name: registry-creds