mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Finalize patches for remaining CAPI objects
Finish patches for all remaining CAPI objects Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
This commit is contained in:
parent
36fd192530
commit
48aa236488
16 changed files with 113 additions and 18 deletions
|
|
@ -1,8 +0,0 @@
|
|||
---
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
|
||||
kind: AWSCluster
|
||||
metadata:
|
||||
name: .*
|
||||
spec:
|
||||
region: us-west-2
|
||||
sshKeyName: usw2_rsa_key
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster-1" }
|
||||
]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster-1" },
|
||||
{ "op": "replace", "path": "/spec/region", "value": "us-west-2" },
|
||||
{ "op": "replace", "path": "/spec/sshKeyName", "value": "usw2_rsa_key" }
|
||||
]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster1-cp1" }
|
||||
]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster1-cp2" }
|
||||
]
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
|
||||
kind: AWSMachineTemplate
|
||||
metadata:
|
||||
name: .*
|
||||
spec:
|
||||
template:
|
||||
spec:
|
||||
sshKeyName: usw2_rsa_key
|
||||
# Uncomment following line to change instance type
|
||||
#instanceType: m5.xlarge
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-c1-nodepool0" }
|
||||
]
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-c1-nodepool0" }
|
||||
]
|
||||
|
|
@ -9,32 +9,92 @@ patchesJson6902:
|
|||
version: v1alpha2
|
||||
kind: Cluster
|
||||
name: capi-quickstart
|
||||
path: cluster-patch-name.json
|
||||
path: cluster-patch.json
|
||||
- target:
|
||||
group: infrastructure.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: AWSCluster
|
||||
name: capi-quickstart
|
||||
path: awscluster-patch-name.json
|
||||
path: awscluster-patch.json
|
||||
- target:
|
||||
group: cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: Machine
|
||||
name: capi-quickstart-controlplane-0
|
||||
path: machine-patch-name.json
|
||||
path: machine-cp0-patch-name.json
|
||||
- target:
|
||||
group: infrastructure.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: AWSMachine
|
||||
name: capi-quickstart-controlplane-0
|
||||
path: awsmachine-patch-name.json
|
||||
path: awsmachine-cp0-patch-name.json
|
||||
- target:
|
||||
group: bootstrap.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: KubeadmConfig
|
||||
name: capi-quickstart-controlplane-0
|
||||
path: awsmachine-cp0-patch-name.json
|
||||
- target:
|
||||
group: cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: Machine
|
||||
name: capi-quickstart-controlplane-1
|
||||
path: machine-cp1-patch-name.json
|
||||
- target:
|
||||
group: infrastructure.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: AWSMachine
|
||||
name: capi-quickstart-controlplane-1
|
||||
path: awsmachine-cp1-patch-name.json
|
||||
- target:
|
||||
group: bootstrap.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: KubeadmConfig
|
||||
name: capi-quickstart-controlplane-1
|
||||
path: awsmachine-cp1-patch-name.json
|
||||
- target:
|
||||
group: cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: Machine
|
||||
name: capi-quickstart-controlplane-2
|
||||
path: machine-cp2-patch-name.json
|
||||
- target:
|
||||
group: infrastructure.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: AWSMachine
|
||||
name: capi-quickstart-controlplane-2
|
||||
path: awsmachine-cp2-patch-name.json
|
||||
- target:
|
||||
group: bootstrap.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: KubeadmConfig
|
||||
name: capi-quickstart-controlplane-2
|
||||
path: awsmachine-cp2-patch-name.json
|
||||
- target:
|
||||
group: infrastructure.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: AWSMachineTemplate
|
||||
name: capi-quickstart-worker
|
||||
path: awsmachinetemplate-patch-name.json
|
||||
- target:
|
||||
group: cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: MachineDeployment
|
||||
name: capi-quickstart-worker
|
||||
path: machinedeployment-patch.json
|
||||
- target:
|
||||
group: bootstrap.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: KubeadmConfigTemplate
|
||||
name: capi-quickstart-worker
|
||||
path: kubeadmconfigtemplate-patch-name.json
|
||||
patches:
|
||||
- target:
|
||||
group: infrastructure.cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
kind: AWSCluster
|
||||
name: capi-quickstart
|
||||
path: awscluster-details.yaml
|
||||
kind: AWSMachineTemplate
|
||||
name: capi-quickstart-worker
|
||||
path: awsmachinetemplate-details.yaml
|
||||
- target:
|
||||
group: cluster.x-k8s.io
|
||||
version: v1alpha2
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster1-cp1" },
|
||||
{ "op": "replace", "path": "/spec/bootstrap/configRef/name", "value": "usw2-cluster1-cp1" },
|
||||
{ "op": "replace", "path": "/spec/infrastructureRef/name", "value": "usw2-cluster1-cp1" }
|
||||
]
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-cluster1-cp2" },
|
||||
{ "op": "replace", "path": "/spec/bootstrap/configRef/name", "value": "usw2-cluster1-cp2" },
|
||||
{ "op": "replace", "path": "/spec/infrastructureRef/name", "value": "usw2-cluster1-cp2" }
|
||||
]
|
||||
|
|
@ -5,11 +5,14 @@ metadata:
|
|||
name: .*
|
||||
labels:
|
||||
cluster.x-k8s.io/cluster-name: "usw2-cluster1"
|
||||
nodepool: "usw2-c1-nodepool0"
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
cluster.x-k8s.io/cluster-name: "usw2-cluster1"
|
||||
nodepool: "usw2-c1-nodepool0"
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
cluster.x-k8s.io/cluster-name: "usw2-cluster1"
|
||||
nodepool: "usw2-c1-nodepool0"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,5 @@
|
|||
[
|
||||
{ "op": "replace", "path": "/metadata/name", "value": "usw2-c1-nodepool0" },
|
||||
{ "op": "replace", "path": "/spec/template/spec/bootstrap/configRef/name", "value": "usw2-c1-nodepool0" },
|
||||
{ "op": "replace", "path": "/spec/template/spec/infrastructureRef/name", "value": "usw2-c1-nodepool0" }
|
||||
]
|
||||
Loading…
Reference in a new issue