-
Notifications
You must be signed in to change notification settings - Fork 3
/
deployment.yaml
48 lines (48 loc) · 1.19 KB
/
deployment.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
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/instance: snyk-container-demo
app.kubernetes.io/name: snyk-container-demo
app.kubernetes.io/version: "1.0"
name: snyk-container-demo
spec:
ports:
- name: http
port: 8080
protocol: TCP
targetPort: http
selector:
app.kubernetes.io/instance: snyk-container-demo
app.kubernetes.io/name: snyk-container-demo
type: LoadBalancer
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: snyk-container-demo
labels:
app.kubernetes.io/instance: snyk-container-demo
app.kubernetes.io/name: snyk-container-demo
app.kubernetes.io/version: "1.0"
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/instance: snyk-container-demo
app.kubernetes.io/name: snyk-container-demo
template:
metadata:
labels:
app.kubernetes.io/instance: snyk-container-demo
app.kubernetes.io/name: snyk-container-demo
spec:
containers:
- name: snyk-container-demo
image: snyk/snyk-container-demo
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 8080
protocol: TCP