-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmasdevops.yaml
57 lines (57 loc) · 1.26 KB
/
masdevops.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
apiVersion: v1
kind: Namespace
metadata:
name: mas-devops
labels:
security.openshift.io/scc.podSecurityLabelSync: 'false'
openshift.io/run-level: '0'
pod-security.kubernetes.io/audit: privileged
pod-security.kubernetes.io/warn: privileged
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: mas-devops-service-account
namespace: mas-devops
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: mas-devops-role
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: mas-devops-service-account
namespace: mas-devops
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: mas-devops-app
name: mas-devops-app
namespace: mas-devops
spec:
replicas: 1
selector:
matchLabels:
app: mas-devops-app
strategy:
type: Recreate
template:
metadata:
labels:
app: mas-devops-app
spec:
serviceAccountName: mas-devops-service-account
containers:
- name: main
imagePullPolicy: Always
image: quay.io/ibmmas/cli:latest
command: [ "/bin/bash", "-c", "--" ]
args: [ "while true; do sleep 30; done;" ]
securityContext:
runAsUser: 0