-
Notifications
You must be signed in to change notification settings - Fork 961
/
portainer.yaml
62 lines (62 loc) · 1.18 KB
/
portainer.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
apiVersion: v1
kind: Namespace
metadata:
name: ns-portainer
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: portainer-sa-clusteradmin
namespace: ns-portainer
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: portainer-crb-clusteradmin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: portainer-sa-clusteradmin
namespace: ns-portainer
---
apiVersion: v1
kind: Service
metadata:
name: portainer
namespace: ns-portainer
spec:
type: NodePort
selector:
app: app-portainer
ports:
- name: http
protocol: TCP
port: 9000
targetPort: 9000
nodePort: 30777
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: portainer
namespace: ns-portainer
spec:
selector:
matchLabels:
app: app-portainer
template:
metadata:
labels:
app: app-portainer
spec:
serviceAccountName: portainer-sa-clusteradmin
containers:
- name: portainer
image: portainerci/portainer:k8s-linux-amd64
imagePullPolicy: Always
ports:
- containerPort: 9000
protocol: TCP