Skip to content

Commit

Permalink
Adding --show-secrets to pulumi stack output in the READMEs due to pr…
Browse files Browse the repository at this point in the history
…oliferating secrets in outputs
  • Loading branch information
stack72 committed Jan 22, 2021
1 parent 36c4760 commit 1b0e7df
Show file tree
Hide file tree
Showing 29 changed files with 29 additions and 29 deletions.
2 changes: 1 addition & 1 deletion aws-cs-eks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ After cloning this repo, run these commands from the working directory:
be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig >kubeconfig.json
$ pulumi stack output kubeconfig --show-secrets >kubeconfig.json
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion aws-go-eks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ After cloning this repo, run these commands from the working directory:
be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig >kubeconfig.json
$ pulumi stack output kubeconfig --show-secrets >kubeconfig.json
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion aws-ts-eks-distro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ After cloning this repo, from this working directory, run these commands:
be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig >kubeconfig.json
$ pulumi stack output kubeconfig --show-secrets >kubeconfig.json
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion aws-ts-eks-hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ After cloning this repo, from this working directory, run these commands:
stack output in the CLI, as Pulumi facilitates exporting these objects for us.

```bash
$ pulumi stack output kubeconfig > kubeconfig
$ pulumi stack output kubeconfig --show-secrets > kubeconfig
$ export KUBECONFIG=$PWD/kubeconfig
$ export KUBERNETES_VERSION=1.11.5 && sudo curl -s -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl && sudo chmod +x /usr/local/bin/kubectl

Expand Down
2 changes: 1 addition & 1 deletion aws-ts-eks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ After cloning this repo, from this working directory, run these commands:
be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig >kubeconfig.json
$ pulumi stack output kubeconfig --show-secrets >kubeconfig.json
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-cs-aks-private-container-registry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ To deploy your infrastructure, follow the below steps.
5. After 10-15 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output KubeConfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-cs-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ To deploy your infrastructure, follow the below steps.
5. After 10-15 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output KubeConfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-fs-aks/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ deploy: build ## Deploy with -y
pulumi up -y

exportconfig: ## Exports the kubernetes config
pulumi stack output kubeconfig > kubeconfig.yaml
pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml

destroy: build ## Destroy with -y
pulumi destroy -y
Expand Down
2 changes: 1 addition & 1 deletion azure-fs-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ $ pulumi up --yes
This will prompt you to create a stack if you haven't done so already. When the deploy is ready you can export the kubernetes config with

```bash
$ pulumi stack output kubeconfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

and then test the deployment with
Expand Down
2 changes: 1 addition & 1 deletion azure-go-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ To deploy your infrastructure, follow the below steps.
1. After 10-15 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-nextgen-cs-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ After cloning this repo, from this working directory, run these commands:
1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output KubeConfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-nextgen-go-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ After cloning this repo, from this working directory, run these commands:
1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-nextgen-py-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ After cloning this repo, from this working directory, run these commands:
1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-nextgen-ts-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ After cloning this repo, from this working directory, run these commands:
1. After 3-4 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-py-aks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ After cloning this repo, from this working directory, run these commands:
1. After 10-15 minutes, your cluster will be ready, and the kubeconfig YAML you'll use to connect to the cluster will be available as an output. You can save this kubeconfig to a file like so:

```bash
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets --show-secrets > kubeconfig.yaml
```

Once you have this file in hand, you can interact with your new cluster as usual via `kubectl`:
Expand Down
2 changes: 1 addition & 1 deletion azure-ts-aks-helm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ After cloning this repo, `cd` into it and run these commands. A Kubernetes clust
And you may also configure your `kubectl` client using the `kubeConfig` configuration:

```bash
$ pulumi stack output kubeConfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
$ KUBECONFIG=./kubeconfig.yaml kubectl get service
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
apache-apache LoadBalancer 10.0.125.196 40.76.52.208 80:32080/TCP,443:31419/TCP 9m
Expand Down
2 changes: 1 addition & 1 deletion azure-ts-aks-keda/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ After cloning this repo, `cd` into it and run these commands.
Using these output variables, you may configure your `kubectl` client using the `kubeConfig` configuration:

```bash
$ pulumi stack output kubeConfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
$ KUBECONFIG=./kubeconfig.yaml kubectl get deployment
NAME READY UP-TO-DATE AVAILABLE AGE
keda-edge 1/1 1 1 9m
Expand Down
2 changes: 1 addition & 1 deletion azure-ts-aks-mean/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const node = new k8s.helm.v3.Chart(
);

// Export kubeconfig file, cluster name, and public IP address for Kubernetes application. These can
// be accessed from the CLI, like: `pulumi stack output kubeconfig > kubeconfig.yaml`.
// be accessed from the CLI, like: `pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml`.
export const kubeconfig = k8sCluster.kubeConfigRaw;
export const cluster = k8sCluster.name;
export const frontendAddress = node
Expand Down
2 changes: 1 addition & 1 deletion azure-ts-aks-with-diagnostics/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ After cloning this repo, `cd` into it and run these commands. A Kubernetes clust
you may also configure your `kubectl` client using the `kubeconfig` configuration:

```bash
$ pulumi stack output kubeconfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
$ kubectl get namespaces
....
```
Expand Down
2 changes: 1 addition & 1 deletion digitalocean-py-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ After cloning this repo, from this working directory, run these commands:```
use that when running the `kubectl` command. For instance, this lists your pods:

```bash
$ pulumi stack output kubeconfig > kubeconfig
$ pulumi stack output kubeconfig --show-secrets > kubeconfig
$ KUBECONFIG=./kubeconfig kubectl get pods
```

Expand Down
2 changes: 1 addition & 1 deletion digitalocean-ts-k8s/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ After cloning this repo, from this working directory, run these commands:
use that when running the `kubectl` command. For instance, this lists your pods:

```bash
$ pulumi stack output kubeconfig > kubeconfig
$ pulumi stack output kubeconfig --show-secrets > kubeconfig
$ KUBECONFIG=./kubeconfig kubectl get pods
```

Expand Down
2 changes: 1 addition & 1 deletion gcp-cs-gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ After cloning this repo, from this working directory, run these commands:
stack output in the CLI, as Pulumi facilitates exporting these objects for us.

```bash
$ pulumi stack output KubeConfig > kubeconfig
$ pulumi stack output kubeconfig --show-secrets > kubeconfig
$ export KUBECONFIG=$PWD/kubeconfig

$ kubectl version
Expand Down
2 changes: 1 addition & 1 deletion gcp-go-gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ After cloning this repo, from this working directory, run these commands:
stack output in the CLI, as Pulumi facilitates exporting these objects for us.

```bash
$ pulumi stack output kubeconfig > kubeconfig
$ pulumi stack output kubeconfig --show-secrets > kubeconfig
$ export KUBECONFIG=$PWD/kubeconfig

$ kubectl version
Expand Down
2 changes: 1 addition & 1 deletion gcp-py-gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ After cloning this repo, `cd` into it and run these commands. A GKE Kubernetes c
For instance:

```bash
$ pulumi stack output kubeconfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
$ KUBECONFIG=./kubeconfig.yaml kubectl get po
NAME READY STATUS RESTARTS AGE
canary-n7wfhtrp-fdbfd897b-lrm58 1/1 Running 0 58s
Expand Down
2 changes: 1 addition & 1 deletion gcp-ts-gke-hello-world/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ After cloning this repo, from this working directory, run these commands:
stack output in the CLI, as Pulumi facilitates exporting these objects for us.

```bash
$ pulumi stack output kubeconfig > kubeconfig
$ pulumi stack output kubeconfig --show-secrets > kubeconfig
$ export KUBECONFIG=$PWD/kubeconfig
$ export KUBERNETES_VERSION=1.11.6 && sudo curl -s -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v${KUBERNETES_VERSION}/bin/linux/amd64/kubectl && sudo chmod +x /usr/local/bin/kubectl

Expand Down
2 changes: 1 addition & 1 deletion gcp-ts-gke-serviceaccount/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ After cloning this repo, from this working directory, run these commands:
stack output in the CLI, as Pulumi facilitates exporting these objects for us.

```bash
$ pulumi stack output kubeconfig > kubeconfig
$ pulumi stack output kubeconfig --show-secrets > kubeconfig
$ export KUBECONFIG=$PWD/kubeconfig
$ kubectl version
$ kubectl cluster-info
Expand Down
2 changes: 1 addition & 1 deletion gcp-ts-gke/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ After cloning this repo, `cd` into it and run these commands. A GKE Kubernetes c
For instance:

```bash
$ pulumi stack output kubeConfig > kubeconfig.yaml
$ pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml
$ KUBECONFIG=./kubeconfig.yaml kubectl get po
NAME READY STATUS RESTARTS AGE
canary-n7wfhtrp-fdbfd897b-lrm58 1/1 Running 0 58s
Expand Down
2 changes: 1 addition & 1 deletion gcp-ts-k8s-ruby-on-rails-postgresql/scripts/migrate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -ex

export KUBECONFIG=$(mktemp)
pulumi stack output kubeConfig > $KUBECONFIG
pulumi stack output kubeconfig --show-secrets > $KUBECONFIG

DEPLOYMENT=$(pulumi stack output appName)
if [ -z "$DEPLOYMENT" ]; then
Expand Down
2 changes: 1 addition & 1 deletion gcp-ts-k8s-ruby-on-rails-postgresql/scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
set -ex

export KUBECONFIG=$(mktemp)
pulumi stack output kubeConfig > $KUBECONFIG
pulumi stack output kubeconfig --show-secrets > $KUBECONFIG

DEPLOYMENT=$(pulumi stack output appName)
if [ -z "$DEPLOYMENT" ]; then
Expand Down

0 comments on commit 1b0e7df

Please sign in to comment.