-
Notifications
You must be signed in to change notification settings - Fork 4
/
rundeck.yaml
180 lines (180 loc) · 5.46 KB
/
rundeck.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
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
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
apiVersion: apps/v1
kind: Deployment
metadata:
name: rundeck
namespace: mynamespace
labels:
app: rundeck
spec:
replicas: 1
selector:
matchLabels:
app: rundeck
template:
metadata:
labels:
app: rundeck
spec:
serviceAccountName: rundeck
securityContext:
fsGroup: 1000
containers:
- name: rundeck
image: rundeck/rundeck:4.5.0
ports:
- containerPort: 4440
env:
- name: "JVM_MAX_RAM_PERCENTAGE"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: JVM_MAX_RAM_PERCENTAGE
- name: "RUNDECK_DATABASE_URL"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_DATABASE_URL
- name: "RUNDECK_DATABASE_DRIVER"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_DATABASE_DRIVER
- name: "RUNDECK_DATABASE_USERNAME"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_DATABASE_USERNAME
- name: "RUNDECK_DATABASE_PASSWORD"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_DATABASE_PASSWORD
- name: "RUNDECK_LOGGING_AUDIT_ENABLED"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_LOGGING_AUDIT_ENABLED
- name: "RUNDECK_JAAS_MODULES_0"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_MODULES_0
- name: "RUNDECK_JAAS_LDAP_FLAG"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_FLAG
- name: "RUNDECK_JAAS_LDAP_PROVIDERURL"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_PROVIDERURL
- name: "RUNDECK_JAAS_LDAP_BINDDN"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_BINDDN
- name: "RUNDECK_JAAS_LDAP_BINDPASSWORD"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_BINDPASSWORD
- name: "RUNDECK_JAAS_LDAP_USERBASEDN"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_USERBASEDN
- name: "RUNDECK_JAAS_LDAP_ROLEBASEDN"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_ROLEBASEDN
- name: "RUNDECK_GRAILS_URL"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_GRAILS_URL
- name: "RUNDECK_SERVER_FORWARDED"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_SERVER_FORWARDED
- name: "RUNDECK_JAAS_LDAP_USERRDNATTRIBUTE"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_USERRDNATTRIBUTE
- name: "RUNDECK_JAAS_LDAP_USERIDATTRIBUTE"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_USERIDATTRIBUTE
- name: "RUNDECK_JAAS_LDAP_ROLEMEMBERATTRIBUTE"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_ROLEMEMBERATTRIBUTE
- name: "RUNDECK_JAAS_LDAP_ROLEOBJECTCLASS"
valueFrom:
secretKeyRef:
name: rundeck-secrets
key: RUNDECK_JAAS_LDAP_ROLEOBJECTCLASS
volumeMounts:
- name: aclpolicy
mountPath: /home/rundeck/etc/user.aclpolicy
subPath: user.aclpolicy
- name: rundeck-persistent-storage
mountPath: /home/rundeck/projects
subPath: projects
- name: rundeck-persistent-storage
mountPath: /home/rundeck/libext
subPath: libext
volumes:
- name: aclpolicy
secret:
secretName: rundeck-adm-policy
items:
- key: rundeck-admin-role.yaml
path: user.aclpolicy
- name: rundeck-persistent-storage
persistentVolumeClaim:
claimName: rundeck
# securityContext:
# fsGroup: 775
---
### Service Expose
apiVersion: v1
kind: Service
metadata:
name: rundeck-svc
namespace: mynamespace
spec:
selector:
app: rundeck
type: ClusterIP
ports:
- protocol: TCP
port: 4440
targetPort: 4440
---
### Istio Mesh
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: rundeck-internal-rule
namespace: mynamespace
spec:
hosts:
- rundeck.mydomain.com
gateways:
- default/main-gateway
- mesh
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 4440
host: rundeck-svc.mynamespace.svc.cluster.local