Last active
January 23, 2017 10:00
-
-
Save TomasTomecek/70853c1de07da7f4bd0c1c42526e8aca to your computer and use it in GitHub Desktop.
Minimal OpenShift pod
This file contains hidden or 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
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