Merge pull request #9 from stackhpc/feature/control-plane-omit-az
Support for clusters without explicit AZs
This commit is contained in:
commit
27b39e07b0
10
README.md
10
README.md
@ -16,6 +16,16 @@ To list the available versions for the charts:
|
||||
helm search repo capi --devel --versions
|
||||
```
|
||||
|
||||
> **WARNING**
|
||||
>
|
||||
> The `openstack-cluster` chart depends on features in
|
||||
> [cluster-api-provider-openstack](https://github.com/kubernetes-sigs/cluster-api-provider-openstack)
|
||||
> that are not yet in a release.
|
||||
>
|
||||
> StackHPC maintain custom builds of `cluster-api-provider-openstack` for use with these charts.
|
||||
> You can find these in [the StackHPC fork](https://github.com/stackhpc/cluster-api-provider-openstack/releases)
|
||||
> of `cluster-api-provider-openstack`.
|
||||
|
||||
Currently, the following charts are available:
|
||||
|
||||
| Chart | Description |
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6
|
||||
kind: OpenStackCluster
|
||||
metadata:
|
||||
name: {{ include "openstack-cluster.clusterName" . }}
|
||||
@ -50,6 +50,10 @@ spec:
|
||||
{{- end }}
|
||||
apiServerPort: {{ .port }}
|
||||
{{- end }}
|
||||
{{- with .Values.controlPlane.failureDomains }}
|
||||
controlPlaneAvailabilityZones: {{ toYaml . | nindent 4 }}
|
||||
{{- with .Values.controlPlane }}
|
||||
{{- if .omitFailureDomain }}
|
||||
controlPlaneOmitAvailabilityZone: true
|
||||
{{- else if .failureDomains }}
|
||||
controlPlaneAvailabilityZones: {{ toYaml .failureDomains | nindent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -11,6 +11,6 @@ spec:
|
||||
kind: KubeadmControlPlane
|
||||
name: {{ include "openstack-cluster.componentName" (list . "control-plane") }}
|
||||
infrastructureRef:
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6
|
||||
kind: OpenStackCluster
|
||||
name: {{ include "openstack-cluster.clusterName" . }}
|
||||
|
@ -83,7 +83,7 @@ spec:
|
||||
labels: {{ include "openstack-cluster.controlPlaneSelectorLabels" . | nindent 8 }}
|
||||
infrastructureRef:
|
||||
kind: OpenStackMachineTemplate
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6
|
||||
name: {{ include "openstack-cluster.controlplane.mt.name" . }}
|
||||
{{- with .Values.controlPlane.nodeDrainTimeout }}
|
||||
nodeDrainTimeout: {{ . }}
|
||||
|
@ -40,7 +40,7 @@ template:
|
||||
{{- include "openstack-cluster.componentName" (list . "control-plane") }}-{{ trunc 8 $checksum }}
|
||||
{{- end }}
|
||||
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6
|
||||
kind: OpenStackMachineTemplate
|
||||
metadata:
|
||||
name: {{ include "openstack-cluster.controlplane.mt.name" . }}
|
||||
|
@ -39,14 +39,16 @@ spec:
|
||||
spec:
|
||||
clusterName: {{ include "openstack-cluster.clusterName" $ }}
|
||||
version: {{ $.Values.global.kubernetesVersion }}
|
||||
failureDomain: {{ $nodeGroup.failureDomain }}
|
||||
{{- with $nodeGroup.failureDomain }}
|
||||
failureDomain: {{ . }}
|
||||
{{- end }}
|
||||
bootstrap:
|
||||
configRef:
|
||||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
|
||||
kind: KubeadmConfigTemplate
|
||||
name: {{ include "openstack-cluster.nodegroup.kct.name" (list $ $nodeGroup) }}
|
||||
infrastructureRef:
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6
|
||||
kind: OpenStackMachineTemplate
|
||||
name: {{ include "openstack-cluster.nodegroup.mt.name" (list $ $nodeGroup) }}
|
||||
nodeDrainTimeout: {{ $nodeGroup.nodeDrainTimeout }}
|
||||
|
@ -47,7 +47,7 @@ template:
|
||||
{{- range $nodeGroupOverrides := .Values.nodeGroups }}
|
||||
{{- $nodeGroup := deepCopy $.Values.nodeGroupDefaults | mustMerge $nodeGroupOverrides }}
|
||||
---
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha6
|
||||
kind: OpenStackMachineTemplate
|
||||
metadata:
|
||||
name: {{ include "openstack-cluster.nodegroup.mt.name" (list $ $nodeGroup) }}
|
||||
|
@ -105,8 +105,10 @@ apiServer:
|
||||
controlPlane:
|
||||
# The failure domains to use for control plane nodes
|
||||
# If given, should be a list of availability zones
|
||||
# If not given, all availability zones will be considered for control plane nodes
|
||||
# Only used when omitFailureDomain = false
|
||||
failureDomains:
|
||||
# Indicates whether the failure domain should be omitted from control plane nodes
|
||||
omitFailureDomain: true
|
||||
# The number of control plane machines to deploy
|
||||
# For high-availability, this should be greater than 1
|
||||
# For etcd quorum, it should be odd - usually 3, or 5 for very large clusters
|
||||
@ -198,7 +200,7 @@ nodeGroupDefaults:
|
||||
# Indicates if the node group should be autoscaled
|
||||
autoscale: false
|
||||
# The failure domain for the node group
|
||||
failureDomain: nova
|
||||
failureDomain:
|
||||
# The flavor to use for machines in the node group
|
||||
machineFlavor:
|
||||
# The default networks and ports for worker nodes
|
||||
|
Loading…
x
Reference in New Issue
Block a user