forked from patrick0057/genericssl
-
Notifications
You must be signed in to change notification settings - Fork 1
/
genericssl.yaml
37 lines (37 loc) · 860 Bytes
/
genericssl.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
kind: ConfigMap
apiVersion: v1
metadata:
name: genericssl
data:
SSL_SUBJECT: "*.192.168.99.100.xip.io"
SSL_IP: "192.168.99.100"
SSL_EXPIRE: "3600"
SILENT: "true"
---
apiVersion: batch/v1
kind: Job
metadata:
name: genericssl
spec:
template:
spec:
restartPolicy: Never
initContainers:
- name: genericssl
image: username/genericssl:v1
envFrom:
- configMapRef:
name: genericssl
volumeMounts:
- name: certs-path
mountPath: /certs
containers:
- name: kubectl
image: lachlanevenson/k8s-kubectl:v1.9.3
command: ["kubectl", "apply", "-f", "/certs/secret.yaml"]
volumeMounts:
- name: certs-path
mountPath: /certs
volumes:
- name: certs-path
emptyDir: {}