34fd3e0bfc
* add documentation for openstack provider (capo) * add manifests for openstack provider (capo) * add cluster templates for control plane and workers * add site definition to use openstack provider (capo) with control plane and workers Change-Id: I7158aa87f2ef044d0acca448e3b1c19f58416e22
51 lines
1.2 KiB
YAML
51 lines
1.2 KiB
YAML
apiVersion: cluster.x-k8s.io/v1alpha3
|
|
kind: Cluster
|
|
metadata:
|
|
name: ostgt
|
|
namespace: default
|
|
spec:
|
|
clusterNetwork:
|
|
pods:
|
|
cidrBlocks:
|
|
- 192.168.0.0/16
|
|
serviceDomain: cluster.local
|
|
controlPlaneRef:
|
|
apiVersion: controlplane.cluster.x-k8s.io/v1alpha3
|
|
kind: KubeadmControlPlane
|
|
name: ostgt-control-plane
|
|
infrastructureRef:
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
|
kind: OpenStackCluster
|
|
name: ostgt
|
|
---
|
|
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha3
|
|
kind: OpenStackCluster
|
|
metadata:
|
|
name: ostgt
|
|
namespace: default
|
|
spec:
|
|
apiServerLoadBalancerFloatingIP: ${OPENSTACK_CONTROLPLANE_IP}
|
|
apiServerLoadBalancerPort: 6443
|
|
cloudName: devstack
|
|
cloudsSecret:
|
|
name: ostgt-cloud-config
|
|
namespace: default
|
|
disablePortSecurity: false
|
|
disableServerTags: true
|
|
dnsNameservers:
|
|
- "${OPENSTACK_DNS_NAMESERVERS}"
|
|
externalNetworkId: "{OPENSTACK_EXTERNAL_NETWORK_ID}"
|
|
managedAPIServerLoadBalancer: true
|
|
managedSecurityGroups: true
|
|
nodeCidr: 10.6.0.0/24
|
|
useOctavia: true
|
|
---
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: ostgt-cloud-config
|
|
namespace: default
|
|
data:
|
|
cacert: ${CLOUD_CERT_B64}
|
|
clouds.yaml: ${CLOUDS_YAML_B64}
|