Skip to content

Instantly share code, notes, and snippets.

@guangbochen
Created October 12, 2020 15:17
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 guangbochen/010ba0b2c9d2c57fd1346d7dd4f7a163 to your computer and use it in GitHub Desktop.
Save guangbochen/010ba0b2c9d2c57fd1346d7dd4f7a163 to your computer and use it in GitHub Desktop.
cat <<EOF | kubectl create -f -
apiVersion: v1
kind: Pod
metadata:
name: samplepod-2
annotations:
k8s.v1.cni.cncf.io/networks: '[
{
"name": "ovs-ipam-net",
"ips": ["10.10.10.1/24"]
}
]'
spec:
containers:
- name: samplepod
command: ["sleep", "99999"]
image: alpine
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment