Skip to content

Commit

Permalink
Merge pull request #188 from dnegreira/k8s_fixes
Browse files Browse the repository at this point in the history
Fix k8s deployment
  • Loading branch information
dosaboy authored May 15, 2024
2 parents 5657d0e + deb81ab commit b63a095
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions kubernetes/pipeline/02configure
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ fi
# need min 2.7
if ! is_hyperconverged; then
MOD_OVERLAYS+=( "kubernetes/k8s-openstack-integrator.yaml" )
MOD_OVERLAYS+=( "kubernetes/k8s-openstack-cloud-controller.yaml" )
if ! has_opt --no-trust && [[ ! "$JUJU_VERSION" < "2.7" ]]; then
MOD_OVERLAYS+=( "kubernetes/k8s-openstack-integrator-trust.yaml" )
JUJU_DEPLOY_OPTS=" --trust"
Expand Down
5 changes: 2 additions & 3 deletions overlays/kubernetes/k8s-lb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ applications:
expose: true
num_units: __NUM_K8S_LB_UNITS__
relations:
- [ 'kubernetes-control-plane:kube-api-endpoint', 'kubeapi-load-balancer:apiserver' ]
- [ 'kubernetes-control-plane:loadbalancer', 'kubeapi-load-balancer:loadbalancer' ]
- [ 'kubernetes-worker:kube-api-endpoint', 'kubeapi-load-balancer:website' ]
- [ 'kubernetes-control-plane:loadbalancer-external', 'kubeapi-load-balancer:lb-consumers' ]
- [ 'kubernetes-control-plane:loadbalancer-internal', 'kubeapi-load-balancer:lb-consumers' ]
7 changes: 7 additions & 0 deletions overlays/kubernetes/k8s-openstack-cloud-controller.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
applications:
openstack-cloud-controller:
charm: __CHARM_STORE____CHARM_CS_NS____CHARM_CH_PREFIX__openstack-cloud-controller
relations:
- [openstack-cloud-controller:certificates, easyrsa:client]
- [openstack-cloud-controller:kube-control, kubernetes-control-plane:kube-control]
- [openstack-cloud-controller:external-cloud-provider, kubernetes-control-plane:external-cloud-provider]
4 changes: 1 addition & 3 deletions overlays/kubernetes/k8s-openstack-integrator.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
applications:
openstack-integrator:
charm: __CHARM_STORE____CHARM_CS_NS____CHARM_CH_PREFIX__openstack-integrator
constraints: mem=1G
num_units: 1
relations:
- [ 'openstack-integrator:clients', 'kubernetes-control-plane:openstack' ]
- [ 'openstack-integrator:clients', 'kubernetes-worker:openstack' ]
- [ 'openstack-integrator:clients', 'openstack-cloud-controller:openstack']

0 comments on commit b63a095

Please sign in to comment.