Skip to content

Instantly share code, notes, and snippets.

@TomasTomecek
Last active January 23, 2017 10:00
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 TomasTomecek/70853c1de07da7f4bd0c1c42526e8aca to your computer and use it in GitHub Desktop.
Save TomasTomecek/70853c1de07da7f4bd0c1c42526e8aca to your computer and use it in GitHub Desktop.
Minimal OpenShift pod
apiVersion: v1
kind: Pod
metadata:
name: "caching-dns-server" # pod name, your reference from command line
namespace: "myproject" # default namespace in `oc cluster up`
spec:
containers:
- command:
- "bash"
image: "caching-dns-bind" # use your image!
name: "caching-dns-bind-container" # required
imagePullPolicy: "Never" # important! you want openshift to use your local image
stdin: true
tty: true
# uncomment if you need mounts
# volumeMounts:
# - mountPath: /config.yaml # container
# name: config-volume
# volumes:
# - name: config-volume
# hostPath:
# path: <absolute-path-to>/config.yaml
restartPolicy: "Never"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment