-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathk8s.yaml
More file actions
44 lines (44 loc) · 879 Bytes
/
k8s.yaml
File metadata and controls
44 lines (44 loc) · 879 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: $REPO_SLUG-$SERVER_ENV
namespace: $K8S_NAMESPACE
labels:
app: $REPO_SLUG-$SERVER_ENV
spec:
selector:
matchLabels:
app: $REPO_SLUG-$SERVER_ENV
replicas: 1
template:
metadata:
labels:
app: $REPO_SLUG-$SERVER_ENV
spec:
containers:
- name: covercompared-superadmin
image: $BUILD_IMAGE
ports:
- containerPort: 80
resources:
requests:
memory: "64Mi"
cpu: "125m"
limits:
memory: "128Mi"
cpu: "250m"
imagePullSecrets:
- name: docker-registry-auth
---
apiVersion: v1
kind: Service
metadata:
name: $REPO_SLUG-$SERVER_ENV-svc
namespace: $K8S_NAMESPACE
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: $REPO_SLUG-$SERVER_ENV