-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhello-scc-example.txt
executable file
·65 lines (63 loc) · 1.71 KB
/
hello-scc-example.txt
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
63
oc new-project dmesg-test
################################################################################
oc create sa dmesgsa -n dmesg-test
################################################################################
oc adm policy add-scc-to-user privileged -z dmesgsa -n dmesg-test
################################################################################
echo '
---
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: hello
name: hello
namespace: dmesg-test
spec:
replicas: 1
revisionHistoryLimit: 10
selector:
app: hello
deploymentconfig: hello
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
annotations:
openshift.io/generated-by: OpenShiftNewApp
creationTimestamp: null
labels:
app: hello
deploymentconfig: hello
spec:
containers:
- image: image-registry.openshift-image-registry.svc:5000/openshift/httpd
imagePullPolicy: IfNotPresent
name: hello
ports:
- containerPort: 8080
protocol: TCP
- containerPort: 8443
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
securityContext:
privileged: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
serviceAccount: dmesgsa
serviceAccountName: dmesgsa
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange' | oc apply -f -