Last active
May 21, 2021 16:50
-
-
Save rjhowe/4bb04506b5f7df18be2ffd7d9c32e90c to your computer and use it in GitHub Desktop.
hello-openshift.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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