-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathk8s-deployment.yaml
50 lines (49 loc) · 1021 Bytes
/
k8s-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
49
50
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
labels:
run: workshop-namespaces
name: workshop-namespaces
namespace: jakub
spec:
replicas: 1
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
run: workshop-namespaces
spec:
serviceAccountName: jakub
containers:
- image: prgcont/workshop-namespace:0.0.1
env:
- name: ENDPOINT
value: https://104.248.207.53:6443
- name: CONTEXT
value: workshop
- name: CLUSTER_NAME
value: workshop
imagePullPolicy: Always
name: workshop-namespaces
ports:
- containerPort: 9090
protocol: TCP
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
name: workshop-namespaces
spec:
ports:
- port: 9090
protocol: TCP
targetPort: 9090
selector:
run: workshop-namespaces
sessionAffinity: None
type: ClusterIP