forked from tomoncle/k8s-pipeline-sample
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathkubernetes.yaml
More file actions
57 lines (56 loc) · 1.1 KB
/
kubernetes.yaml
File metadata and controls
57 lines (56 loc) · 1.1 KB
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
---
apiVersion: apps/v1beta2
kind: Deployment
metadata:
name: jenkins-python
labels:
version: {{VERSION}}
spec:
replicas: 1
selector:
matchLabels:
app: jenkins-python
template:
metadata:
labels:
app: jenkins-python
version: {{VERSION}}
spec:
volumes:
- name: dns
hostPath:
path: /etc/resolv.conf
type: File
- name: localtime
hostPath:
path: /etc/localtime
type: File
containers:
- name: jenkins-python
image: {{IMAGE}}
imagePullPolicy: Always
volumeMounts:
- name: dns
mountPath: /etc/resolv.conf
- name: localtime
mountPath: /etc/localtime
ports:
- containerPort: 50000
protocol: TCP
---
kind: Service
apiVersion: v1
metadata:
labels:
app: jenkins-python
name: jenkins-python
namespace: default
spec:
type: NodePort
ports:
- port: 5000
targetPort: 5000
nodePort: 35000
protocol: TCP
selector:
app: jenkins-python