forked from civo/kubernetes-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.yaml
34 lines (34 loc) · 854 Bytes
/
app.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
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: "acorn-init"
namespace: kube-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: acorn-init-cluster-admin-binding
subjects:
- kind: ServiceAccount
name: acorn-init
namespace: kube-system
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
---
apiVersion: batch/v1
kind: Job
metadata:
name: acorn-init-v071
namespace: kube-system
spec:
template:
spec:
containers:
- name: acorn-init
image: ghcr.io/acorn-io/acorn:v0.7.1
command: ["acorn", "init", "--cluster-domain=${CLUSTER_ID}.k8s.civo.com", "--lets-encrypt=${ENABLE_TLS}", "--lets-encrypt-email=${USER_EMAIL}", "--lets-encrypt-tos-agree=true"]
restartPolicy: Never
serviceAccountName: acorn-init