Gluttony-Cluster/api/general-api/general-api-deployment.yaml

45 lines
942 B
YAML
Raw Normal View History

2023-11-02 02:45:22 +00:00
apiVersion: apps/v1
kind: Deployment
metadata:
name: general-api
namespace: api-ns
labels:
app: general-api
spec:
replicas: 1
selector:
matchLabels:
app: api-apps
template:
metadata:
labels:
2023-11-03 22:44:26 +00:00
app: api-apps
2023-11-02 02:45:22 +00:00
spec:
containers:
- name: general-api
image: git.clortox.com/tyler/general-api:latest
env:
- name: ACCESS_KEY
2023-11-03 22:44:26 +00:00
valueFrom:
secretKeyRef:
name: general-api-secret
value: access-key
2023-11-02 02:45:22 +00:00
- name: SECRET_KEY
2023-11-03 22:44:26 +00:00
valueFrom:
secretKeyRef:
name: general-api-secret
value: secret-key
- name: CONFIG
value: "/config.yaml"
2023-11-02 02:45:22 +00:00
ports:
- containerPort: 8000
2023-11-03 22:44:26 +00:00
volumes:
- name: config-volume
configMap:
name: general-api-config-map
items:
- key: config.yaml
path: /config.yaml
2023-11-02 02:45:22 +00:00