Closed
Description
This is a Bug Report
Problem:
The section Securing the service shows a make command:
make keys secret KEY=/tmp/nginx.key CERT=/tmp/nginx.crt SECRET=/tmp/secret.json
kubectl apply -f /tmp/secret.json
But the first command fails with error: make: *** No rule to make target ``secret'. Stop.
. And so the secret isn't created.
As per the documentation, the make file is from nginx https example and in this Makefile, there is no target "Secret".
Proposed Solution:
As per the README of nginx https example, the above commands should be modified as:
make keys KEY=/tmp/nginx.key CERT=/tmp/nginx.crt
kubectl create secret tls nginxsecret --key /tmp/nginx.key --cert /tmp/nginx.crt
This works.
Page to Update:
https://kubernetes.io/docs/concepts/services-networking/connect-applications-service/#securing-the-service