forked from rundeck/docker-zoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rundeckpro-deployment.yaml
117 lines (115 loc) · 3.4 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
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: extensions/v1beta1
kind: Deployment
metadata:
name: rundeckpro
namespace: default
spec:
replicas: 2
template:
metadata:
labels:
app: rundeckpro
spec:
containers:
- name: rundeck
image: rundeckpro/cluster: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
env:
- name: RUNDECK_GRAILS_URL
value: "http://localhost:8080"
- name: RUNDECK_DATABASE_DRIVER
value: "com.mysql.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
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