Skip to content

Instantly share code, notes, and snippets.

@pichuang
Created April 23, 2021 08:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pichuang/5fa8146df0a97bdf1f3ee32bab551a19 to your computer and use it in GitHub Desktop.
Save pichuang/5fa8146df0a97bdf1f3ee32bab551a19 to your computer and use it in GitHub Desktop.
---
apiVersion: v1
id: hello-openshift
kind: Pod
metadata:
name: hello-openshift
labels:
name: hello-openshift
spec:
volumes:
- name: dshm
emptyDir:
medium: Memory
containers:
- image: kubernetes/pause
name: hello-container1
ports:
- containerPort: 8080
hostPort: 6061
volumeMounts:
- mountPath: /dev/shm
name: dshm
- image: kubernetes/pause
name: hello-container2
ports:
- containerPort: 8081
hostPort: 6062
volumeMounts:
- mountPath: /dev/shm
name: dshm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment