-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathK8-deployment.yaml
More file actions
50 lines (47 loc) · 889 Bytes
/
Copy pathK8-deployment.yaml
File metadata and controls
50 lines (47 loc) · 889 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# Backend Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: backend
spec:
replicas: 1
selector:
matchLabels:
app: backend
template:
metadata:
labels:
app: backend
spec:
containers:
- name: backend-container
image: kemechial/nasa-api-backend:v1
ports:
- containerPort: 3030
env:
- name: NASA_API_KEY
valueFrom:
secretKeyRef:
name: my-secret
key: NASA_API_KEY
---
# Frontend Deployment
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 3
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend-container
image: kemechial/nasa-api-frontend:v1
ports:
- containerPort: 80