@@ -235,7 +235,13 @@ For this tutorial I assume you have GNU sed installed, if not read
235
235
commands with `sed` to modify the files according to the `sed` command
236
236
being run. If you are running BSD or MacOS you can use `gsed`.
237
237
238
- === Create kops cluster with cloud labels
238
+ We need to have cloud labels enabled for this ingress controller to work.
239
+ You have 2 options, skip the section which does not fit in your case:
240
+
241
+ 1. <<Create a New Cluster>>
242
+ 2. <<Modify an Existing Cluster>>
243
+
244
+ === Create a New Cluster
239
245
240
246
Cloud Labels are required to make Kube AWS Ingress Controller work,
241
247
because it has to find the AWS Application Load Balancers it manages
@@ -250,13 +256,31 @@ your S3 Bucket name for kops configuration and you kops cluster name:
250
256
export KOPS_CLUSTER_NAME=example.cluster.k8s.local
251
257
252
258
253
- The you create the kops cluster and validate that everything is set up properly.
254
-
259
+ Then you create the kops cluster and validate that everything is set up properly.
255
260
256
261
export KOPS_STATE_STORE=s3://${S3_BUCKET}
257
262
kops create cluster --name $KOPS_CLUSTER_NAME --zones $AWS_AVAILABILITY_ZONES --cloud-labels kubernetes.io/cluster/$KOPS_CLUSTER_NAME=owned --yes
258
263
kops validate cluster
259
264
265
+ === Modify an Existing Cluster
266
+
267
+ To modify your existing kops cluster and update it.
268
+
269
+ export KOPS_STATE_STORE=s3://${S3_BUCKET}
270
+ kops edit cluster $KOPS_CLUSTER_NAME
271
+
272
+ Add cloudLabels dependent on your $KOPS_CLUSTER_NAME, for example example.cluster.k8s.local:
273
+
274
+ ```
275
+ spec:
276
+ cloudLabels:
277
+ kubernetes.io/cluster/example.cluster.k8s.local: owned
278
+ ```
279
+
280
+ Update the cluster with the new configuration:
281
+
282
+ kops update cluster $KOPS_CLUSTER_NAME --yes
283
+
260
284
261
285
=== IAM role
262
286
0 commit comments