-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yml
52 lines (49 loc) · 1 KB
/
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
44
45
46
47
48
49
50
51
52
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: bd-helloworld-deployment
spec:
replicas: 2
selector:
matchLabels:
app: bd-helloworld-deployment
template:
metadata:
labels:
app: bd-helloworld-deployment
spec:
containers:
- name: bd-helloworld
image: webapp:1
# for local development against minikube registry
#imagePullPolicy: Never
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: bd-helloworld-service
spec:
ports:
- name: bd-helloworld-port
port: 80
protocol: TCP
targetPort: 8080
selector:
app: bd-helloworld-deployment
type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
name: bd-helloworld-ingress
spec:
rules:
- host: updated-in-toolchain-script.cloud
http:
paths:
- backend:
serviceName: bd-helloworld-service
servicePort: 80
path: /