-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathenvironment-exposer-example.yaml
85 lines (85 loc) · 2.05 KB
/
environment-exposer-example.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
apiVersion: v1
kind: ServiceAccount
metadata:
name: environment-exposer
namespace: pair-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: environment-exposer
namespace: default
rules:
- apiGroups:
- ""
resources:
- services
verbs:
- get
- list
- create
- delete
- apiGroups:
- networking.k8s.io
resources:
- ingresses
verbs:
- get
- list
- create
- delete
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: environment-exposer
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: environment-exposer
subjects:
- kind: ServiceAccount
name: environment-exposer
namespace: pair-system
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: environment-exposer
namespace: pair-system
spec:
selector:
matchLabels:
app: environment-exposer
template:
metadata:
labels:
app: environment-exposer
spec:
serviceAccountName: environment-exposer
containers:
- name: environment-exposer
image: registry.gitlab.com/sharingio/environment/exposer:latest
imagePullPolicy: IfNotPresent
securityContext:
runAsUser: 1000
runAsGroup: 1000
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
env:
- name: APP_EXPORTER_ENDPOINT
value: http://environment-exporter.default:10093
- name: APP_EXTERNAL_IP
value: 127.0.0.1 # replace with useful IP
- name: APP_ENVIRONMENT_DEFAULT_NAMESPACE
value: default
- name: APP_ENVIRONMENT_BASE_DOMAIN
value: _.pair.sharing.io # replace with real host
volumeMounts:
- name: template-folder
mountPath: /home/ii/.sharing.io/cluster-api/exposer/templates
volumes:
- name: template-folder
hostPath:
path: /home/ii/.sharing.io/cluster-api/exposer/templates