argocd-applications/dummyhttp/deployment.yaml
Sergio Talens-Oliag 979ecd44dc
All checks were successful
multi-semantic-release / multi-semantic-release (push) Successful in 13s
feat(dummyhttp): first version of the application
2025-05-01 14:58:02 +02:00

36 lines
862 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: dummyhttp
labels:
app: dummyhttp
spec:
selector:
matchLabels:
app: dummyhttp
template:
metadata:
labels:
app: dummyhttp
spec:
containers:
- name: dummyhttp
image: forgejo.mixinet.net/oci/dummyhttp:1.0.0
command: [ "/bin/sh", "-c" ]
args:
- 'eval dummyhttp -b \"{\\\"c\\\": \\\"$CM_VAR\\\", \\\"s\\\": \\\"$SECRET_VAR\\\"}\"'
ports:
- containerPort: 8080
env:
- name: CM_VAR
valueFrom:
configMapKeyRef:
name: dummyhttp-configmap
key: CM_VAR
optional: true
- name: SECRET_VAR
valueFrom:
secretKeyRef:
name: dummyhttp-secret
key: SECRET_VAR
optional: true