Skip to content

Instantly share code, notes, and snippets.

@jboxman
Last active July 29, 2021 16:15
Show Gist options
  • Save jboxman/5bd133a61e9626f70654175e88f8a858 to your computer and use it in GitHub Desktop.
Save jboxman/5bd133a61e9626f70654175e88f8a858 to your computer and use it in GitHub Desktop.
YAML ellipsis
Today
apiVersion: config.openshift.io/v1
kind: Scheduler
metadata:
  name: cluster
...
spec:
  defaultNodeSelector: node-role.kubernetes.io/app= (1)
...
  1. This example node selector deploys pods on worker nodes by default.

Option 1
apiVersion: config.openshift.io/v1
kind: Scheduler
metadata:
  name: cluster
# ...
spec:
  defaultNodeSelector: node-role.kubernetes.io/app= (1)
# ...
  1. This example node selector deploys pods on worker nodes by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment