This repository was archived by the owner on May 21, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsystemd-ocp-template.yaml
More file actions
199 lines (199 loc) · 4.58 KB
/
systemd-ocp-template.yaml
File metadata and controls
199 lines (199 loc) · 4.58 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
apiVersion: v1
kind: Template
metadata:
name: systemd-httpd
objects:
- apiVersion: v1
kind: ServiceAccount
metadata:
creationTimestamp: null
name: systemd
- apiVersion: v1
kind: SecurityContextConstraints
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegedContainer: false
allowedCapabilities: null
defaultAddCapabilities: null
fsGroup:
type: MustRunAs
users:
- system:serviceaccount:systemd:systemd
metadata:
annotations:
kubernetes.io/description: Similar to restricted - systemd-restricted denies access to all host features,
except hostPath, and SELinux context that are allocated to the namespace. This scc allows for setuid
and setgid capabilities.
creationTimestamp: null
name: systemd-restricted
priority: null
readOnlyRootFilesystem: false
requiredDropCapabilities:
- KILL
- MKNOD
- SYS_CHROOT
runAsUser:
type: MustRunAsRange
seLinuxContext:
type: MustRunAs
supplementalGroups:
type: RunAsAny
volumes:
- configMap
- downwardAPI
- emptyDir
- persistentVolumeClaim
- secret
- apiVersion: v1
kind: ImageStream
metadata:
labels:
app: systemd-httpd
name: systemd-httpd
spec:
tags:
- name: "systemd-httpd"
- apiVersion: "v1"
kind: "BuildConfig"
metadata:
name: "systemd-httpd"
spec:
source:
git:
uri: https://github.com/RHsyseng/container-rhel-examples
contextDir: "starter-systemd"
strategy:
type: "Docker"
output:
to:
kind: "ImageStreamTag"
name: "systemd-httpd:latest"
triggers:
- generic:
secret: b725254e6534fd70
type: Generic
- type: ConfigChange
- apiVersion: v1
kind: DeploymentConfig
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
generation: 6
labels:
app: systemd-httpd
name: systemd-httpd
spec:
replicas: 1
selector:
app: systemd-httpd
deploymentconfig: systemd-httpd
strategy:
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: systemd-httpd
deploymentconfig: systemd-httpd
spec:
containers:
- image: systemd-httpd
imagePullPolicy: Always
name: systemd-httpd
ports:
- containerPort: 80
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 20
successThreshold: 1
tcpSocket:
port: 80
timeoutSeconds: 1
resources: {}
terminationMessagePath: /dev/termination-log
volumeMounts:
- mountPath: /sys/fs/cgroup
name: cgroup
- mountPath: /run
name: run
- mountPath: /tmp
name: tmp
- mountPath: /var/log/httpd
name: log
dnsPolicy: ClusterFirst
restartPolicy: Always
securityContext: {}
serviceAccount: systemd
serviceAccountName: systemd
terminationGracePeriodSeconds: 30
volumes:
- hostPath:
path: /sys/fs/cgroup
name: cgroup
- emptyDir: {}
name: run
- emptyDir: {}
name: tmp
- emptyDir: {}
name: log
test: false
triggers:
- type: ConfigChange
- imageChangeParams:
automatic: true
containerNames:
- systemd-httpd
from:
kind: ImageStreamTag
name: systemd-httpd:latest
type: ImageChange
- apiVersion: v1
kind: Service
metadata:
annotations:
openshift.io/generated-by: OpenShiftWebConsole
creationTimestamp: null
labels:
app: systemd-httpd
name: systemd-httpd
spec:
ports:
- name: 80-tcp
port: 80
protocol: TCP
targetPort: 80
selector:
deploymentconfig: systemd-httpd
sessionAffinity: None
type: ClusterIP
- apiVersion: v1
kind: Route
metadata:
annotations:
openshift.io/host.generated: "true"
creationTimestamp: null
labels:
app: systemd-httpd
name: systemd-httpd
spec:
port:
targetPort: 80-tcp
to:
kind: Service
name: systemd-httpd
weight: 100