- In above yaml files,
apiVersion
is set toapp/v1
as below, I copied it from Dan's PR which I think is used in openshift. With kubernetes,apiVersion
is set toextensions/v1beta1
apiVersion: apps/v1
- the image names in above files will be replaced by env vars set in network operator manifests; example can be found here: https://github.com/openshift/cluster-network-operator/pull/54/commits/4211d3a41cf0b9cd526a1229c08453f18038a7d9#diff-1cf3d8447bdd10b4fd172cc55ca05700R37
{{.ContainerNetworkingCNIPluginsSupportedImage}}
and {{.ContainerNetworkingCNIPluginsUnsupportedImage}}
-
Tomo helped to provide the correct format of command and arg, espically how
*
shall be used in pod spec args:command: ["/bin/sh"] args: ["-c", "cp -rf /usr/src/plugins/bin/* /host/opt/cni/bin"]