From 8a60df68f7d2e0c25f97d6b606e354454bd4b5d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?N=C3=ADcolas=20Roberto?= <66215835+Nicolas-Roberto@users.noreply.github.com> Date: Sat, 28 Oct 2023 22:49:08 -0300 Subject: [PATCH] add missing commands to the getting started guide (#2751) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * add missing commands to the getting started guide Update "Create your first SecretStore" and "Create your first ExternalSecret" topics to be easy to understand Signed-off-by: Nícolas Roberto <66215835+Nicolas-Roberto@users.noreply.github.com> Signed-off-by: nicolas.queiroz * change nano command to echo command Signed-off-by: Nícolas Roberto <66215835+Nicolas-Roberto@users.noreply.github.com> Signed-off-by: nicolas.queiroz * fix changes in getting started file Signed-off-by: nicolas.queiroz --------- Signed-off-by: Nícolas Roberto <66215835+Nicolas-Roberto@users.noreply.github.com> Signed-off-by: nicolas.queiroz Signed-off-by: Shuhei Kitagawa Co-authored-by: Shuhei Kitagawa --- docs/introduction/getting-started.md | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/docs/introduction/getting-started.md b/docs/introduction/getting-started.md index fbdb2ebd9..2376a23e1 100644 --- a/docs/introduction/getting-started.md +++ b/docs/introduction/getting-started.md @@ -15,7 +15,7 @@ Uncomment the relevant line in the next steps to disable the automatic install o ### Option 1: Install from chart repository -``` bash +```bash helm repo add external-secrets https://charts.external-secrets.io helm install external-secrets \ @@ -29,7 +29,7 @@ helm install external-secrets \ Build and install the Helm chart locally after cloning the repository. -``` bash +```bash make helm.build helm install external-secrets \ @@ -49,17 +49,33 @@ kubectl create secret generic awssm-secret --from-file=./access-key --from-file= ### Create your first SecretStore -``` yaml +Create a file 'basic-secret-store.yaml' with the following content. + +```yaml {% include 'basic-secret-store.yaml' %} ``` +Apply it to create a SecretStore resource. + +``` +kubectl apply -f "basic-secret-store.yaml" +``` + ### Create your first ExternalSecret -``` yaml +Create a file 'basic-external-secret.yaml' with the following content. + +```yaml {% include 'basic-external-secret.yaml' %} ``` -``` bash +Apply it to create an External Secret resource. + +``` +kubectl apply -f "basic-external-secret.yaml" +``` + +```bash kubectl describe externalsecret example # [...] Name: example