...

Text file src/github.com/k8snetworkplumbingwg/network-attachment-definition-client/README.md

Documentation: github.com/k8snetworkplumbingwg/network-attachment-definition-client

     1# NetworkAttachmentDefinition CRD Client
     2
     3Based on https://github.com/openshift-evangelists/crd-code-generation
     4
     5## Getting Started
     6
     7First register the custom resource definition:
     8
     9```
    10kubectl apply -f artifacts/network-crd.yaml
    11```
    12
    13For old kubernetes version (<1.16), please use `artifacts/networks-crd-v1beta1.yaml`:
    14
    15```
    16kubectl apply -f artifacts/networks-crd-v1beta1.yaml
    17```
    18
    19Then add an example of the `NetworkAttachmentDefinition` kind:
    20
    21```
    22kubectl apply -f artifacts/my-network.yaml
    23```
    24
    25Finally build and run the example:
    26
    27```
    28go build
    29./example -kubeconfig ~/.kube/config
    30```

View as plain text