mirror of https://github.com/k3s-io/k3s
36 lines
782 B
YAML
36 lines
782 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: the-deployment
|
|
labels:
|
|
deployment: hello
|
|
spec:
|
|
replicas: 3
|
|
selector:
|
|
matchLabels:
|
|
deployment: hello
|
|
template:
|
|
metadata:
|
|
labels:
|
|
deployment: hello
|
|
spec:
|
|
containers:
|
|
- name: the-container
|
|
image: monopole/hello:1
|
|
command: ["/hello",
|
|
"--port=8080",
|
|
"--enableRiskyFeature=$(ENABLE_RISKY)"]
|
|
ports:
|
|
- containerPort: 8080
|
|
env:
|
|
- name: ALT_GREETING
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: the-map
|
|
key: altGreeting
|
|
- name: ENABLE_RISKY
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: the-map
|
|
key: enableRisky
|