Skip to the content.

Home

Creating Private (Internal) Load Balancer in OKE

Just add the following annotation

service.beta.kubernetes.io/oci-load-balancer-internal: “true”

Here is an example

kind: Service
apiVersion: v1
metadata:
 name: sample-app-internal-svc
 annotations:
   service.beta.kubernetes.io/oci-load-balancer-internal: “true”
spec:
 selector:
   app: sample-app
 ports:
 - protocol: TCP
   targetPort: 8080
   port: 80
 type: LoadBalancer

References