-
Notifications
You must be signed in to change notification settings - Fork 0
/
secrets.example.yaml
58 lines (58 loc) · 1.21 KB
/
secrets.example.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
---
apiVersion: v1
kind: Secret
metadata:
name: git-ssh-auth
annotations:
kpack.io/git: git@github.com
type: kubernetes.io/ssh-auth
data:
ssh-privatekey: XXXXX
---
apiVersion: v1
kind: Secret
metadata:
name: registry-user-pass
annotations:
kpack.io/docker: https://registry.yourdomain.com
type: kubernetes.io/basic-auth
stringData:
username: XXXXXX
password: XXXXXX
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kpack-sa
secrets:
- name: registry-user-pass
- name: git-ssh-auth
imagePullSecrets:
- name: registry-user-pass
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: kpack-role
rules:
- apiGroups: ["kpack.io"]
resources: ["builds", "images"]
verbs: ["get", "list", "watch", "create", "update", "patch", "delete"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
- apiGroups: ["application.kubero.dev"]
resources: ["kuberoapps"]
verbs: ["get", "list", "watch", "update", "patch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: kpack-role-binding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: kpack-role
subjects:
- kind: ServiceAccount
name: kpack-sa