-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathkubemacs.yaml
89 lines (88 loc) · 1.86 KB
/
kubemacs.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
apiVersion: v1
kind: ServiceAccount
metadata:
name: admin-kubemacs
namespace: kubemacs
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-kubemacs
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: admin-kubemacs
namespace: kubemacs
---
apiVersion: v1
kind: Namespace
metadata:
name: kubemacs
labels:
environment: production
---
apiVersion: v1
kind: Service
metadata:
name: kubemacs-tilt
namespace: kubemacs
spec:
type: ClusterIP
selector:
app: kubemacs
ports:
- name: "10350"
port: 10350
targetPort: 10350
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubemacs
namespace: kubemacs
spec:
replicas: 1
selector:
matchLabels:
app: kubemacs
template:
metadata:
labels:
app: kubemacs
spec:
serviceAccountName: admin-kubemacs
containers:
- name: kubemacs
image: gcr.io/apisnoop/kubemacs:0.9.23
env:
- name: TZ
value: "Pacific/Auckland"
- name: GIT_COMMITER_EMAIL
value: "[email protected]"
- name: GIT_COMMITER_NAME
value: "ii coop in New Zealand"
- name: GIT_AUTHOR_EMAIL
value: "[email protected]"
- name: GIT_AUTHOR_NAME
value: "ii coop in New Zealand"
volumeMounts:
- mountPath: '/home/ii/workspace'
name: kubemacs-hostpath
- name: docker
mountPath: /var/run/docker.sock
- name: host-tmp
mountPath: /tmp
volumes:
- name: kubemacs-hostpath
hostPath:
path: /workspace
- name: docker
hostPath:
path: /var/run/docker.sock
type: Socket
- name: host-tmp
hostPath:
path: /var/host/tmp