Skip to content

Commit d26439e

Browse files
authored
Merge pull request #253 from mjura/azure-ns
Fix namaspace for Azure AKS example
2 parents c85228f + 3cccec0 commit d26439e

File tree

2 files changed

+68
-79
lines changed

2 files changed

+68
-79
lines changed

docs/next/modules/en/pages/user/clusters.adoc

+17-1
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,11 @@ follow the provider documentation if some options need to be customized:
8888
[source,bash]
8989
----
9090
export AZURE_CLIENT_SECRET="xxx"
91+
export NAMESPACE=capi-clusters
9192
----
9293
+
94+
Create *capz-provider-template.yaml* file with content below:
95+
+
9396
[source,yaml]
9497
----
9598
---
@@ -107,14 +110,27 @@ spec:
107110
type: infrastructure
108111
---
109112
apiVersion: v1
113+
kind: Namespace
114+
metadata:
115+
name: ${NAMESPACE}
116+
---
117+
apiVersion: v1
110118
stringData:
111119
clientSecret: "${AZURE_CLIENT_SECRET}"
112120
kind: Secret
113121
metadata:
114122
name: cluster-identity-secret
115-
namespace: default
123+
namespace: ${NAMESPACE}
116124
type: Opaque
117125
----
126+
+
127+
Generate *capz-provider.yaml* with variables and apply manifest to Kubernetes:
128+
+
129+
[source,bash]
130+
----
131+
cat capz-provider-template.yaml | envsubst > capz-provider.yaml
132+
kubectl apply -f capz-provider.yaml
133+
----
118134
119135
GCP GKE::
120136
+

package-lock.json

+51-78
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)