January 2019
Intermediate to advanced
484 pages
11h 48m
English
Similarly to AWS cloud provider, GKE also supports using the L4 LoadBalancer for Kubernetes Services. Just specify Service.spec.type as the LoadBalancer, and then GKE will set up and configure the L4 LoadBalancer automatically.
Note that the corresponding firewall rule between the L4 LoadBalancer and the Kubernetes node can be created by the cloud provider automatically. This is simple but powerful enough if you want to quickly expose your application to the internet:
$ cat grafana.ymlapiVersion: apps/v1kind: Deploymentmetadata: name: grafanaspec: replicas: 1 selector: matchLabels: project: devops-with-kubernetes app: grafana template: metadata: labels: project: devops-with-kubernetes app: grafana spec: containers: - image: ...
Read now
Unlock full access