forked from rohitgabriel/hellocontainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
43 lines (43 loc) · 877 Bytes
/
deployment.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
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: hello-app
spec:
replicas: 2
selector:
matchLabels:
app: hello-app
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 1
maxSurge: 1
template:
metadata:
labels:
app: hello-app
spec:
containers:
- name: hello-app
image: webapp:6
# for local development against minikube registry
#imagePullPolicy: Never
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: hello-service
labels:
app: hello-service
annotations:
prometheus.io/scrape: true
spec:
type: NodePort
ports:
# the port that this service should serve on
- port: 80
# label keys and values that must match in order to receive traffic for this service
selector:
app: hello-app