mirror of
https://github.com/1Panel-dev/KubePi.git
synced 2025-12-24 13:38:10 +08:00
35 lines
721 B
YAML
35 lines
721 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: kuard-env
|
|
labels:
|
|
app: kuard
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: kuard
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: kuard
|
|
spec:
|
|
containers:
|
|
- name: kuard
|
|
image: gcr.io/kuar-demo/kuard-amd64:1
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
protocol: TCP
|
|
env:
|
|
- name: LOG_LEVEL
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: example-config
|
|
key: app.config
|
|
optional: true
|
|
volumes:
|
|
- name: kuard-volume
|
|
secret:
|
|
secretName: example-secret
|