
This commit creates a secret which defines a haproxy.cfg and mounts that secret to a newly created loadbalancer pod running with haproxy image. A nodeport service is then created for the loadbalancer pod. The loadbalancer is created to load balance the nodes defined as master. Co-Authored-By: Francis Yi <francisyi19@gmail.com> Co-Authored-By: Kostyantyn Kalynovskyi <kkalynovskyi@mirantis.com> Change-Id: I91eb23892254ed2e7a68e13fe2b10489415d8589
40 lines
883 B
YAML
40 lines
883 B
YAML
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: RoleBinding
|
|
metadata:
|
|
name: scheduler-rolebinding
|
|
namespace: metal3
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: Role
|
|
name: scheduler-role
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: default
|
|
namespace: sip-cluster-system
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: cluster-scheduler-rolebinding
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: cluster-scheduler-role
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: default
|
|
namespace: sip-cluster-system
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
name: cluster-infra-service-rolebinding
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: sipcluster-infra-service
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: default
|
|
namespace: sip-cluster-system
|