-
Notifications
You must be signed in to change notification settings - Fork 82
/
Copy pathrundeckpro-deployment.yaml
157 lines (154 loc) · 4.37 KB
/
rundeckpro-deployment.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
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: rundeckpro-nginx
annotations:
nginx.ingres.kubernetes.io/affinity: "cookie"
nginx.ingress.kubernetes.io/session-cookie-name: "route"
nginx.ingress.kubernetes.io/session-cookie-expires: "172800"
nginx.ingress.kubernetes.io/session-cookie-max-age: "172800"
spec:
ingressClassName: nginx
rules:
- host: localhost
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: rundeckpro
port:
number: 8080
---
apiVersion: v1
kind: Service
metadata:
name: rundeckpro
spec:
type: LoadBalancer
ports:
- protocol: TCP
port: 8080
targetPort: 4440
selector:
app: rundeckpro
externalTrafficPolicy: Local
sessionAffinity: ClientIP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rundeckpro
namespace: default
labels:
app: rundeckpro
spec:
replicas: 1
selector:
matchLabels:
app: rundeckpro
template:
metadata:
labels:
app: rundeckpro
spec:
containers:
- name: rundeck
image: rundeckpro/enterprise:SNAPSHOT
volumeMounts:
- mountPath: /home/rundeck/etc/rundeckpro-license.key
name: license
subPath: rundeckpro-license.key
- mountPath: /home/rundeck/etc/admin-role.aclpolicy
name: acl
subPath: admin-role.aclpolicy
- mountPath: /home/rundeck/.kube/config
name: kubeconfig
subPath: config
env:
- name: RUNDECK_GRAILS_URL
value: "http://localhost:8080"
- name: RUNDECK_DATABASE_DRIVER
value: "org.mariadb.jdbc.Driver"
- name: RUNDECK_DATABASE_URL
value: "jdbc:mysql://mysql.default.svc.cluster.local:3306/rundeckdb?autoReconnect=true&useSSL=false"
- name: RUNDECK_DATABASE_USERNAME
value: "rundeck"
- name: RUNDECK_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-rundeckuser
key: password
- name: RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_NAME
value: "com.rundeck.rundeckpro.amazon-s3"
- name: RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_BUCKET
value: "rundeck"
- name: RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_REGION
value: "us-east-2"
- name: RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_ENDPOINT
value: "http://minio.default.svc.cluster.local:9000"
- name: RUNDECK_PLUGIN_EXECUTIONFILESTORAGE_S3_PATHSTYLE
value: "true"
- name: AWS_ACCESS_KEY_ID
valueFrom:
secretKeyRef:
name: rundeckpro-log-storage
key: awskey
- name: AWS_SECRET_KEY
valueFrom:
secretKeyRef:
name: rundeckpro-log-storage
key: awssecret
- name: RUNDECK_PLUGIN_CLUSTER_HEARTBEAT_CONSIDERDEAD
value: "120"
- name: RUNDECK_PLUGIN_CLUSTER_AUTOTAKEOVER_SLEEP
value: "10"
- name: RUNDECK_STORAGE_CONVERTER_1_CONFIG_PASSWORD
valueFrom:
secretKeyRef:
name: rundeckpro-storage-converter
key: masterpassword
- name: RUNDECK_CONFIG_STORAGE_CONVERTER_1_CONFIG_PASSWORD
valueFrom:
secretKeyRef:
name: rundeckpro-storage-converter
key: masterpassword
- name: RUNDECK_PLUGIN_CLUSTER_REMOTEEXECUTION_ENABLED
value: "false"
ports:
- containerPort: 4440
livenessProbe:
# an http probe
httpGet:
path: /
port: 4440
scheme: HTTP
initialDelaySeconds: 500
periodSeconds: 120
readinessProbe:
httpGet:
path: /
port: 4440
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 5
volumes:
- name: license
secret:
secretName: rundeckpro-license
items:
- key: rundeckpro-license.key
path: rundeckpro-license.key
- name: acl
secret:
secretName: rundeckpro-admin-acl
items:
- key: admin-role.aclpolicy
path: admin-role.aclpolicy
- name: kubeconfig
secret:
secretName: kubeconfig
items:
- key: config
path: config