oai-openshift-cli-admin/oai-master/deployment.yaml

66 lines
1.6 KiB
YAML
Raw Normal View History

2023-03-14 04:32:53 -04:00
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
name: oai-inf-deployment-6
labels:
app: oai-inf-deployment-6
spec:
replicas: 3
selector:
app: oai-inf-deployment-6
strategy:
type: Rolling
rollingParams:
intervalSeconds: 1
updatePeriodSeconds: 1
maxUnavailable: 0
maxSurge: 1
minReadySeconds: 30
template:
metadata:
labels:
app: oai-inf-deployment-6
spec:
securityContextConstraints:
- name: privileged
- name: oai-scc
serviceAccountName: oai-sa
containers:
- name: cunt-cunt-tun
image: image-registry.openshift-image-registry.svc:5000/infidel-test/oai-inf-cu-6
securityContext:
privileged: true
capabilities:
add: ["SYS_ADMIN"]
volumeMounts:
- mountPath: /dev/net/tun
readOnly: true
name: dev-tun
- name: cunt-cunt-tun
image: image-registry.openshift-image-registry.svc:5000/infidel-test/oai-du
securityContext:
privileged: true
capabilities:
add: ["SYS_ADMIN"]
volumeMounts:
- mountPath: /dev/net/tun
readOnly: true
name: dev-tun
volumes:
- name: dev-tun
hostPath:
path: /dev/net/tun
triggers:
- type: ConfigChange
- type: ImageChange
imageChangeParams:
automatic: true
containerNames:
- oai-inf-deployment-6
from:
kind: ImageStreamTag
name: oai-inf:latest
namespace: infidel-test