Avoid deploying a Load Balancer Service on unsupported cloud providers¶
Some infrastructure providers do not support Service
of type: LoadBalancer
, e.g. because the load-balancers don't integrate with Kubernetes.
In such cases your administrator may deploy a policy to prevent such Services from being deployed.
When attempting to apply a Service
with type: LoadBalancer
anyway, the following error message would be returned:
Creation of LoadBalancer Service is not supported. Contact your platform administrator for questions about Load Balancers.
apiVersion: v1
kind: Service
metadata:
name: my-service
spec:
selector:
app.kubernetes.io/name: MyApp
type: LoadBalancer
ports:
- protocol: TCP
port: 80
targetPort: 9376
How to solve¶
Consult your platform documentation for how to handle load balancing.