Skip to content

Commit

Permalink
fix markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
lmercl committed Nov 15, 2021
1 parent 8088fb8 commit 7366a65
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/gcp-lb.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ Google Cloud Platform can be used for creation of Kubernetes Service Load Balanc

This feature is able to deliver by adding parameters to kube-controller-manager and kubelet. You need specify:

--cloud-provider=gce
--cloud-config=/etc/kubernetes/cloud-config
--cloud-provider=gce
--cloud-config=/etc/kubernetes/cloud-config

To get working it in kubespray, you need to add tag to GCE instances and specify it in kubespray group vars and also set cloud_provider to gce. So for example, in file group_vars/all/gcp.yml:

cloud_provider: gce
gce_node_tags: k8s-lb
cloud_provider: gce
gce_node_tags: k8s-lb

When you will setup it and create SVC in Kubernetes with type=LoadBalancer, cloud provider will create public IP and will set firewall.
Note: Cloud provider run under VM service account, so this account needs to have correct permissions to be able to create all GCP resources.

0 comments on commit 7366a65

Please sign in to comment.