resources
resources copied to clipboard
Error in controller.sh
The error came up running bash controller.sh
"The Deployment "kube-root-ca.crt" is invalid: spec.template.spec.containers[0].name: Invalid value: "kube-root-ca.crt": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name', or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')"
After studying the controller.sh file added | tr '.' '-'
while read next; do
NAME=$(echo $next | cut -d' ' -f2 | tr '.' '-') # Replace '.' with '-'
EVENT=$(echo $next | cut -d' ' -f1)