Skip to content

Instantly share code, notes, and snippets.

@chrigl
Created July 14, 2020 13:41
Show Gist options
  • Save chrigl/871dd92399cf2938bbdc9f2028a0cd64 to your computer and use it in GitHub Desktop.
Save chrigl/871dd92399cf2938bbdc9f2028a0cd64 to your computer and use it in GitHub Desktop.
Basic deployment of openshift origon console. DON'T use this!
apiVersion: v1
kind: ServiceAccount
metadata:
name: oc-admin
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: oc-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: oc-admin
namespace: default
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: console
name: console
namespace: default
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: console
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: console
spec:
containers:
- image: quay.io/openshift/origin-console
imagePullPolicy: IfNotPresent
name: origin-console
ports:
- containerPort: 9000
protocol: TCP
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
serviceAccount: oc-admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment