In this example (link), it creates kind cluster with config file, which patch containerd. What does the - |-
under the line of containerdConfigPatches
mean?
I found - |
in yaml indicates this is a patch field. But what does the -
following - |
mean?
# create a cluster with the local registry enabled in containerd
cat <<EOF | kind create cluster --config=-
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.mirrors."localhost:${reg_port}"]
endpoint = ["http://${reg_name}:5000"]
EOF