-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.yml
137 lines (137 loc) · 2.73 KB
/
manifest.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
apiVersion: v1
kind: Namespace
metadata:
name: openmole
labels:
name: openmole
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: openmole-admin-sa
namespace: openmole
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: openmole-admin-role
namespace: openmole
rules:
- apiGroups:
- "*"
resources:
- "*" #["pods", "deployments" ]
verbs:
- "*" #["list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: openmole-role-binding
namespace: openmole
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: openmole-admin-role
subjects:
- kind: ServiceAccount
name: openmole-admin-sa
namespace: openmole
---
apiVersion: v1
data:
config.yml: |
salt: "some-salt"
secret: "some-secret"
kube:
storageClassName: null
storageSize: 10240
openmole:
versionHistory: 3
kind: ConfigMap
metadata:
creationTimestamp: null
name: connect-config
namespace: openmole
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: connect-pv-claim
namespace: openmole
spec:
#storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: v1
kind: Pod
metadata:
name: openmole-connect
namespace: openmole
labels:
app.kubernetes.io/name: openmole-connect
spec:
containers:
- name: openmole-connect
image: openmole/openmole-connect:1.0-SNAPSHOT
args:
- --config-file
- "/etc/connect-config/config.yml"
ports:
- containerPort: 8080
volumeMounts:
- name: connect-config
mountPath: "/etc/connect-config"
readOnly: true
- mountPath: "/home/demiourgos728"
name: connect-pv-storage
volumes:
- name: connect-config
configMap:
name: connect-config
- name: connect-pv-storage
persistentVolumeClaim:
claimName: connect-pv-claim
serviceAccountName: openmole-admin-sa
---
apiVersion: v1
kind: Service
metadata:
name: openmole-connect-service
namespace: openmole
spec:
selector:
app.kubernetes.io/name: openmole-connect
ports:
- protocol: TCP
port: 8080
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: openmole-connect-ingress
namespace: openmole
annotations:
nginx.ingress.kubernetes.io/proxy-body-size: 10240m
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
defaultBackend:
service:
name: openmole-connect-service
port:
number: 8080
# - host: online.openmole.org
# http:
# paths:
# - path: /
# pathType: Prefix
# backend:
# service:
# name: openmole-connect-service
# port:
# number: 8080