-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathopenstack-capi-quickstart.yaml
118 lines (118 loc) · 2.82 KB
/
openstack-capi-quickstart.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: Cluster
metadata:
name: capi-openstack
spec:
clusterNetwork:
pods:
cidrBlocks: ["192.168.0.0/16"] # CIDR block used by Calico.
serviceDomain: "cluster.local"
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: OpenStackCluster
name: capi-openstack
controlPlaneRef:
kind: MicroK8sControlPlane
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
name: capi-openstack-control-plane
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: OpenStackCluster
metadata:
name: capi-openstack
spec:
cloudName: openstack
identityRef:
name: capi-openstack-cloud-config
kind: Secret
#apiServerLoadBalancer:
# enabled: true
managedSecurityGroups: true
allowAllInClusterTraffic: true
nodeCidr: 10.6.0.0/24
dnsNameservers: []
externalNetworkId: 1a154612-1c48-48b8-9352-32d230dd9363
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: MicroK8sControlPlane
metadata:
name: capi-openstack-control-plane
namespace: default
spec:
controlPlaneConfig:
initConfiguration:
joinTokenTTLInSecs: 9000
addons:
- dns
- ingress
machineTemplate:
infrastructureTemplate:
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: OpenStackMachineTemplate
name: capi-openstack-control-plane
replicas: 3
version: v1.23.0
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: OpenStackMachineTemplate
metadata:
name: capi-openstack-control-plane
spec:
template:
spec:
flavor: m1.large
image: ubuntu-20.04
sshKeyName: myssh
cloudName: openstack
identityRef:
name: capi-openstack-cloud-config
kind: Secret
---
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachineDeployment
metadata:
name: "capi-openstack-md-0"
spec:
clusterName: "capi-openstack"
replicas: 1
selector:
matchLabels:
template:
spec:
clusterName: "capi-openstack"
version: "1.23.0"
failureDomain: nova
bootstrap:
configRef:
name: "capi-openstack-md-0"
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: MicroK8sConfigTemplate
infrastructureRef:
name: "capi-openstack-md-0"
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: OpenStackMachineTemplate
---
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha5
kind: OpenStackMachineTemplate
metadata:
name: capi-openstack-md-0
spec:
template:
spec:
cloudName: openstack
identityRef:
name: capi-openstack-cloud-config
kind: Secret
flavor: m1.large
image: ubuntu-20.04
sshKeyName: myssh
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: MicroK8sConfigTemplate
metadata:
name: capi-openstack-md-0
namespace: default
spec:
template:
spec: {}