fix: macOS username environment variable (#4078)

USERNAME is macOS reserved environment variable
This commit is contained in:
An0nymous 2019-05-13 02:32:34 +08:00 committed by Martin Taillefer
parent 8289d588ed
commit 4d94cc61e0
1 changed files with 4 additions and 4 deletions

View File

@ -22,8 +22,8 @@ keywords: [telemetry,visualization]
在 Istio 命名空间中创建一个 Secret作为 Kiali 的认证凭据。[Helm README]({{< github_blob >}}/install/kubernetes/helm/istio/README.md#installing-the-chart) 中介绍了更多细节。修改并运行下列命令:
{{< text bash >}}
$ USERNAME=$(echo -n 'admin' | base64)
$ PASSPHRASE=$(echo -n 'mysecret' | base64)
$ KIALI_USERNAME=$(echo -n 'admin' | base64)
$ KIALI_PASSPHRASE=$(echo -n 'mysecret' | base64)
$ NAMESPACE=istio-system
$ kubectl create namespace $NAMESPACE
$ cat <<EOF | kubectl apply -f -
@ -36,8 +36,8 @@ metadata:
app: kiali
type: Opaque
data:
username: $USERNAME
passphrase: $PASSPHRASE
username: $KIALI_USERNAME
passphrase: $KIALI_PASSPHRASE
EOF
{{< /text >}}