37 lines
862 B
YAML
37 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
|