-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontainer-getting-started.yaml
60 lines (58 loc) · 1.32 KB
/
container-getting-started.yaml
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
50
51
52
53
54
55
56
57
58
59
60
kind: Service
apiVersion: v1
metadata:
name: gettingstarted
namespace: container-getting-started
spec:
ports:
- name: 80-tcp
protocol: TCP
port: 3000
targetPort: 3000
selector:
deployment: gettingstarted
type: LoadBalancer
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: gettingstarted
namespace: container-getting-started
labels:
app: gettingstarted
spec:
replicas: 1
selector:
matchLabels:
deployment: gettingstarted
template:
metadata:
creationTimestamp: null
labels:
deployment: gettingstarted
spec:
containers:
- name: gettingstarted
image: docker.io/altugyildirim/getting-started:latest
ports:
- containerPort: 3000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
imagePullPolicy: IfNotPresent
env:
- name: "PASSWORD"
value: "p@ssword123!"
restartPolicy: Always
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirst
securityContext: {}
schedulerName: default-scheduler
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
revisionHistoryLimit: 10
progressDeadlineSeconds: 600