Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • v2.28.0
  • v2.27.0
  • v2.25.1
  • v2.24.3
  • v2.26.0
  • v2.24.2
  • v2.25.0
  • v2.24.1
  • v2.22.2
  • v2.23.3
  • v2.24.0
  • v2.23.2
  • v2.23.1
  • v2.23.0
  • v2.22.1
  • v2.22.0
  • v2.21.0
  • v2.20.0
  • v2.19.1
  • v2.18.2
21 results

gcp-lb.md

Blame
    • Cristian Calin's avatar
      e6976a54
      add pre-commit hook to facilitate local testing (#9158) · e6976a54
      Cristian Calin authored
      * add pre-commit hook configuration
      
      * add tmp.md to .gitignore
      
      * describe the use of pre-commit hook in CONTRIBUTING.md
      
      * fix docs/integration.md errors identified by markdownlint
      
      * fix docs/<file>.md errors identified by markdownlint
      
      * docs/azure-csi.md
      * docs/azure.md
      * docs/bootstrap-os.md
      * docs/calico.md
      * docs/debian.md
      * docs/fcos.md
      * docs/vagrant.md
      * docs/gcp-lb.md
      * docs/kubernetes-apps/registry.md
      * docs/setting-up-your-first-cluster.md
      * docs/vagrant.md
      * docs/vars.md
      
      * fix contrib/<file>.md errors identified by markdownlint
      e6976a54
      History
      add pre-commit hook to facilitate local testing (#9158)
      Cristian Calin authored
      * add pre-commit hook configuration
      
      * add tmp.md to .gitignore
      
      * describe the use of pre-commit hook in CONTRIBUTING.md
      
      * fix docs/integration.md errors identified by markdownlint
      
      * fix docs/<file>.md errors identified by markdownlint
      
      * docs/azure-csi.md
      * docs/azure.md
      * docs/bootstrap-os.md
      * docs/calico.md
      * docs/debian.md
      * docs/fcos.md
      * docs/vagrant.md
      * docs/gcp-lb.md
      * docs/kubernetes-apps/registry.md
      * docs/setting-up-your-first-cluster.md
      * docs/vagrant.md
      * docs/vars.md
      
      * fix contrib/<file>.md errors identified by markdownlint

    GCP Load Balancers for type=LoadBalacer of Kubernetes Services

    Google Cloud Platform can be used for creation of Kubernetes Service Load Balancer.

    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

    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

    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.