Skip to content

Instantly share code, notes, and snippets.

@rjhowe
Last active May 21, 2021 16:50
Show Gist options
  • Save rjhowe/4bb04506b5f7df18be2ffd7d9c32e90c to your computer and use it in GitHub Desktop.
Save rjhowe/4bb04506b5f7df18be2ffd7d9c32e90c to your computer and use it in GitHub Desktop.
hello-openshift.yaml
kind: List
apiVersion: v1
items:
- apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: hello-openshift
app: hello-openshift
name: hello-openshift
spec:
replicas: 3
selector:
matchLabels:
app: hello-openshift
template:
metadata:
name: hello-openshift
creationTimestamp:
labels:
name: hello-openshift
app: hello-openshift
spec:
containers:
- name: hello-openshift
image: openshift/hello-openshift
ports:
- containerPort: 8080
protocol: TCP
resources: {}
volumeMounts:
- name: tmp
mountPath: "/tmp"
imagePullPolicy: IfNotPresent
securityContext:
capabilities: {}
privileged: false
volumes:
- name: tmp
emptyDir: {}
restartPolicy: Always
dnsPolicy: ClusterFirst
- apiVersion: v1
kind: Service
metadata:
labels:
name: hello-clusterip
name: hello-clusterip
spec:
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080
selector:
app: hello-openshift
sessionAffinity: None
type: ClusterIP
kind: Route
- apiVersion: route.openshift.io/v1
kind: Route
metadata:
name: hello-openshift
spec:
port:
targetPort: 8080-tcp
to:
kind: Service
name: hello-clusterip
weight: 100
wildcardPolicy: None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment