Our system architect left and I'm thrown into a deep water managing Kubernetes cluster. I'm trying to update ssl-secret on our kubernetes cluster, using the following command
kubectl -n zone-system create secret generic ssl-secret \
--from-file=./$CERT_FILE \
--from-file=./$KEY_FILE \
--dry-run=client \
-o yaml |
kubectl apply -f -
When I run it, however, I get the following error:
error: cannot add key dashboard.yaml, another key by that name already exists
error: no objects passed to apply
I'm not sure how to resolve it. Tried Google and Stackoverflow searches, but none of the questions are actually related to this error. I know the second error is due to the first one.
Thanks ahead,
Igal