forked from mawinkler/troopers
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathapp.yml
47 lines (47 loc) · 862 Bytes
/
app.yml
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
apiVersion: v1
kind: Service
metadata:
annotations:
service.alpha.kubernetes.io/tolerate-unready-endpoints: "true"
name: troopers
labels:
app: troopers
spec:
type: NodePort
ports:
- port: 5000
name: troopers
targetPort: 5000
nodePort: 30100
selector:
app: troopers
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: troopers
name: troopers
spec:
replicas: 1
selector:
matchLabels:
app: troopers
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
app: troopers
spec:
containers:
- name: troopers
image: $K8S_REGISTRY/troopers:latest
imagePullPolicy: Always
ports:
- containerPort: 5000
imagePullSecrets:
- name: $KUBERNETES_SECRET_NAME