Openshift loadbalancers Integration with Openstack Octavia
Issue
We currently have Openstack Octavia running in one of our clouds.
With the Openshift installer I've set octaviaSupport on:
apiVersion: v1
baseDomain: novalocal
compute:
- hyperthreading: Enabled
name: worker
replicas: 3
controlPlane:
hyperthreading: Enabled
name: master
platform:
replicas: 3
metadata:
creationTimestamp: null
name: os-test
networking:
clusterNetwork:
- cidr: 10.132.0.0/14
hostPrefix: 23
machineCIDR: 10.0.0.0/16
networkType: OpenShiftSDN
serviceNetwork:
- 172.132.0.0/16
platform:
openstack:
cloud: quattro-userdev
computeFlavor: m1.4large
externalDNS:
- 8.8.4.4
- 8.8.8.8
externalNetwork: <openstack-internet-pool>
lbFloatingIP: <ip>
octaviaSupport: "1"
region: emea3
trunkSupport: "0"
pullSecret: '<pullsecret>'
sshKey: <key>
While installing Openshift it does not create loadbalancers with Octavia.
It also does not create a loadbalancer when creating an Openshift service with:
kind: Service
apiVersion: v1
metadata:
name: external-http-nginx-service
namespace: external-test
annotations:
loadbalancer.openstack.org/floating-network-id: 21a04dba-18f8-4517-9a5f-adcd9bbd7af4
service.beta.kubernetes.io/openstack-internal-load-balancer: 'true'
spec:
ports:
- name: http
protocol: TCP
port: 8080
targetPort: 8080
nodePort: 32630
selector:
app: hello-world
clusterIP: 172.132.58.0
type: LoadBalancer
sessionAffinity: None
externalTrafficPolicy: Cluster
status:
loadBalancer: {}
- How do I let Openshift create the Openstack Loadbalancers with Octavia?
- Does it only work with in combination with Kuryr?
- It is difficult to find a lot of documentation about this topic with Openshift 4+.
Environment
Openshift Container Platform 4.2
Openstack 13
Octavia
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.