Skip to content

Instantly share code, notes, and snippets.

@williamcaban
Last active September 23, 2020 22:47
Show Gist options
  • Save williamcaban/21ebf4d6a487ee6edfe9f2c7af50a9ac to your computer and use it in GitHub Desktop.
Save williamcaban/21ebf4d6a487ee6edfe9f2c7af50a9ac to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Pod
metadata:
  name: static-ip
  annotations:
    k8s.v1.cni.cncf.io/networks: '[
      {
        "name": "<name>", 
        "ips": [ "192.0.2.205/24","2001:333:333::333/64" ], 
        "mac": "CA:FE:C0:FF:EE:00" 
      }
    ]'
spec:
  containers:
  - name: static-ip
    image: quay.io/wcaban/net-toolbox
    command:
    - /bin/bash
    - -c
    - sleep infinity

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