airshipctl/manifests/function/k8scontrol-capo/cluster.yaml
Ratnopam Chakrabarti 34fd3e0bfc Integrate openstack provider(capo) with airshipctl
* 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
2020-10-06 16:01:48 -04:00

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}