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
|
2023-11-06 00:32:08 +00:00
|
|
|
image: git.clortox.com/tyler/general-api:1.0.12
|
2023-11-04 00:15:22 +00:00
|
|
|
imagePullPolicy: Always
|
2023-11-02 02:45:22 +00:00
|
|
|
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
|
2023-11-03 23:17:50 +00:00
|
|
|
value: "config.yaml"
|
2023-11-02 02:45:22 +00:00
|
|
|
ports:
|
2023-11-03 22:56:57 +00:00
|
|
|
- containerPort: 80
|
2023-11-03 23:03:12 +00:00
|
|
|
volumesMounts:
|
|
|
|
- name: config-volume
|
2023-11-03 23:15:36 +00:00
|
|
|
mountPath: /media/config.yaml
|
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
|
|
|
|