diff --git a/secrets/README.md b/secrets/README.adoc similarity index 89% rename from secrets/README.md rename to secrets/README.adoc index 32b322c..57977d0 100644 --- a/secrets/README.md +++ b/secrets/README.adoc @@ -9,7 +9,7 @@ First encode the secrets you want to apply, for this example we will use the use echo -n "admin" | base64 echo -n "password" | base64 -Both of these values are already written in the file `./templates/secret.yaml`. The configuration looks like: +The configuration looks like: ``` apiVersion: v1 @@ -24,7 +24,7 @@ data: You can now insert this secret in the Kubernetes cluster with the following command: - kubectl apply -f ./templates/secret.yaml + kubectl apply -f ./secret.yaml The list of created secrets can be seen as: @@ -56,7 +56,7 @@ Once again, the values of the secret are not shown. Deploy the pod: - kubectl apply -f ./templates/pod-secret-volume.yaml + kubectl apply -f ./pod-secret-volume.yaml The pod configuration file looks like: @@ -88,13 +88,13 @@ The above commands should result in the plain text values, the decoding is done Delete the pod: - kubectl delete -f ./templates/pod-secret-volume.yaml + kubectl delete -f ./pod-secret-volume.yaml === Consume as pod environment variables Deploy the pod: - kubectl apply -f ./templates/pod-secret-env.yaml + kubectl apply -f ./pod-secret-env.yaml The pod configuration file looks like: