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

45 lines
937 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:
2023-11-03 22:49:12 +00:00
name: general-api-secret
key: access-key
2023-11-02 02:45:22 +00:00
- name: SECRET_KEY
2023-11-03 22:44:26 +00:00
valueFrom:
secretKeyRef:
2023-11-03 22:49:12 +00:00
name: general-api-secret
key: secret-key
2023-11-03 22:44:26 +00:00
- 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
2023-11-03 22:46:58 +00:00
path: config.yaml
2023-11-03 22:44:26 +00:00
2023-11-02 02:45:22 +00:00