Compare commits
3 Commits
Test_SemRe
...
Appliance.
Author | SHA1 | Date | |
---|---|---|---|
7f72ab53f4 | |||
042d3b0eab | |||
7482054904 |
@ -3,8 +3,8 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- cluster-template.yaml
|
- cluster-template.yaml
|
||||||
|
|
||||||
patchesStrategicMerge:
|
patches:
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Secret
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
@ -32,7 +32,7 @@ patchesStrategicMerge:
|
|||||||
[Network]
|
[Network]
|
||||||
public-network = "${VSPHERE_NETWORK}"
|
public-network = "${VSPHERE_NETWORK}"
|
||||||
type: Opaque
|
type: Opaque
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
|
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
|
||||||
kind: KubeadmControlPlane
|
kind: KubeadmControlPlane
|
||||||
metadata:
|
metadata:
|
||||||
@ -42,7 +42,7 @@ patchesStrategicMerge:
|
|||||||
kubeadmConfigSpec:
|
kubeadmConfigSpec:
|
||||||
clusterConfiguration:
|
clusterConfiguration:
|
||||||
imageRepository: registry.{{ _template.network.fqdn }}/kubeadm
|
imageRepository: registry.{{ _template.network.fqdn }}/kubeadm
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
|
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
|
||||||
kind: KubeadmConfigTemplate
|
kind: KubeadmConfigTemplate
|
||||||
metadata:
|
metadata:
|
||||||
@ -53,7 +53,7 @@ patchesStrategicMerge:
|
|||||||
spec:
|
spec:
|
||||||
clusterConfiguration:
|
clusterConfiguration:
|
||||||
imageRepository: registry.{{ _template.network.fqdn }}/kubeadm
|
imageRepository: registry.{{ _template.network.fqdn }}/kubeadm
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
|
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
|
||||||
kind: KubeadmConfigTemplate
|
kind: KubeadmConfigTemplate
|
||||||
metadata:
|
metadata:
|
||||||
@ -86,7 +86,7 @@ patchesStrategicMerge:
|
|||||||
{{ _template.rootca | indent(width=14, first=False) | trim }}
|
{{ _template.rootca | indent(width=14, first=False) | trim }}
|
||||||
owner: root:root
|
owner: root:root
|
||||||
path: /usr/local/share/ca-certificates/root_ca.crt
|
path: /usr/local/share/ca-certificates/root_ca.crt
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
||||||
kind: VSphereMachineTemplate
|
kind: VSphereMachineTemplate
|
||||||
metadata:
|
metadata:
|
||||||
@ -105,7 +105,7 @@ patchesStrategicMerge:
|
|||||||
nameservers:
|
nameservers:
|
||||||
- {{ _template.network.dnsserver }}
|
- {{ _template.network.dnsserver }}
|
||||||
networkName: '${VSPHERE_NETWORK}'
|
networkName: '${VSPHERE_NETWORK}'
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
||||||
kind: VSphereMachineTemplate
|
kind: VSphereMachineTemplate
|
||||||
metadata:
|
metadata:
|
||||||
@ -125,8 +125,7 @@ patchesStrategicMerge:
|
|||||||
- {{ _template.network.dnsserver }}
|
- {{ _template.network.dnsserver }}
|
||||||
networkName: '${VSPHERE_NETWORK}'
|
networkName: '${VSPHERE_NETWORK}'
|
||||||
|
|
||||||
patchesJson6902:
|
- target:
|
||||||
- target:
|
|
||||||
group: controlplane.cluster.x-k8s.io
|
group: controlplane.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: KubeadmControlPlane
|
kind: KubeadmControlPlane
|
||||||
@ -164,10 +163,10 @@ patchesJson6902:
|
|||||||
path: /spec/kubeadmConfigSpec/files/-
|
path: /spec/kubeadmConfigSpec/files/-
|
||||||
value:
|
value:
|
||||||
content: |
|
content: |
|
||||||
{{ _template.rootca | indent(width=12, first=False) | trim }}
|
{{ _template.rootca | indent(width=10, first=False) | trim }}
|
||||||
owner: root:root
|
owner: root:root
|
||||||
path: /usr/local/share/ca-certificates/root_ca.crt
|
path: /usr/local/share/ca-certificates/root_ca.crt
|
||||||
- target:
|
- target:
|
||||||
group: bootstrap.cluster.x-k8s.io
|
group: bootstrap.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: KubeadmConfigTemplate
|
kind: KubeadmConfigTemplate
|
||||||
@ -178,7 +177,7 @@ patchesJson6902:
|
|||||||
path: /spec/template/spec/preKubeadmCommands/-
|
path: /spec/template/spec/preKubeadmCommands/-
|
||||||
value: {{ cmd }}
|
value: {{ cmd }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
- target:
|
- target:
|
||||||
group: controlplane.cluster.x-k8s.io
|
group: controlplane.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: KubeadmControlPlane
|
kind: KubeadmControlPlane
|
||||||
@ -190,7 +189,7 @@ patchesJson6902:
|
|||||||
value: {{ cmd }}
|
value: {{ cmd }}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
- target:
|
- target:
|
||||||
group: infrastructure.cluster.x-k8s.io
|
group: infrastructure.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: VSphereMachineTemplate
|
kind: VSphereMachineTemplate
|
||||||
@ -199,7 +198,7 @@ patchesJson6902:
|
|||||||
- op: replace
|
- op: replace
|
||||||
path: /metadata/name
|
path: /metadata/name
|
||||||
value: ${CLUSTER_NAME}-master
|
value: ${CLUSTER_NAME}-master
|
||||||
- target:
|
- target:
|
||||||
group: controlplane.cluster.x-k8s.io
|
group: controlplane.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: KubeadmControlPlane
|
kind: KubeadmControlPlane
|
||||||
@ -211,7 +210,7 @@ patchesJson6902:
|
|||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/machineTemplate/infrastructureRef/name
|
path: /spec/machineTemplate/infrastructureRef/name
|
||||||
value: ${CLUSTER_NAME}-master
|
value: ${CLUSTER_NAME}-master
|
||||||
- target:
|
- target:
|
||||||
group: cluster.x-k8s.io
|
group: cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
@ -221,7 +220,7 @@ patchesJson6902:
|
|||||||
path: /spec/controlPlaneRef/name
|
path: /spec/controlPlaneRef/name
|
||||||
value: ${CLUSTER_NAME}-master
|
value: ${CLUSTER_NAME}-master
|
||||||
|
|
||||||
- target:
|
- target:
|
||||||
group: infrastructure.cluster.x-k8s.io
|
group: infrastructure.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: VSphereMachineTemplate
|
kind: VSphereMachineTemplate
|
||||||
@ -233,7 +232,7 @@ patchesJson6902:
|
|||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/template/spec/memoryMiB
|
path: /spec/template/spec/memoryMiB
|
||||||
value: {{ _template.nodesize.memory }}
|
value: {{ _template.nodesize.memory }}
|
||||||
- target:
|
- target:
|
||||||
group: cluster.x-k8s.io
|
group: cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: MachineDeployment
|
kind: MachineDeployment
|
||||||
@ -245,7 +244,7 @@ patchesJson6902:
|
|||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/template/spec/bootstrap/configRef/name
|
path: /spec/template/spec/bootstrap/configRef/name
|
||||||
value: ${CLUSTER_NAME}-worker
|
value: ${CLUSTER_NAME}-worker
|
||||||
- target:
|
- target:
|
||||||
group: bootstrap.cluster.x-k8s.io
|
group: bootstrap.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: KubeadmConfigTemplate
|
kind: KubeadmConfigTemplate
|
||||||
|
@ -5,8 +5,8 @@ resources:
|
|||||||
- manifests/machinedeployment-{{ _template.cluster.name }}-worker.yaml
|
- manifests/machinedeployment-{{ _template.cluster.name }}-worker.yaml
|
||||||
- manifests/vspheremachinetemplate-{{ _template.cluster.name }}-worker.yaml
|
- manifests/vspheremachinetemplate-{{ _template.cluster.name }}-worker.yaml
|
||||||
|
|
||||||
patchesStrategicMerge:
|
patches:
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
|
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
|
||||||
kind: KubeadmConfigTemplate
|
kind: KubeadmConfigTemplate
|
||||||
metadata:
|
metadata:
|
||||||
@ -31,7 +31,7 @@ patchesStrategicMerge:
|
|||||||
mounts:
|
mounts:
|
||||||
- - LABEL=blockstorage
|
- - LABEL=blockstorage
|
||||||
- /mnt/blockstorage
|
- /mnt/blockstorage
|
||||||
- |-
|
- patch: |-
|
||||||
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
|
||||||
kind: VSphereMachineTemplate
|
kind: VSphereMachineTemplate
|
||||||
metadata:
|
metadata:
|
||||||
@ -43,8 +43,7 @@ patchesStrategicMerge:
|
|||||||
additionalDisksGiB:
|
additionalDisksGiB:
|
||||||
- {{ _template.nodepool.additionaldisk }}
|
- {{ _template.nodepool.additionaldisk }}
|
||||||
|
|
||||||
patchesJson6902:
|
- target:
|
||||||
- target:
|
|
||||||
group: bootstrap.cluster.x-k8s.io
|
group: bootstrap.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: KubeadmConfigTemplate
|
kind: KubeadmConfigTemplate
|
||||||
@ -54,7 +53,7 @@ patchesJson6902:
|
|||||||
path: /metadata/name
|
path: /metadata/name
|
||||||
value: {{ _template.cluster.name }}-worker-storage
|
value: {{ _template.cluster.name }}-worker-storage
|
||||||
|
|
||||||
- target:
|
- target:
|
||||||
group: cluster.x-k8s.io
|
group: cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: MachineDeployment
|
kind: MachineDeployment
|
||||||
@ -73,7 +72,7 @@ patchesJson6902:
|
|||||||
path: /spec/replicas
|
path: /spec/replicas
|
||||||
value: {{ _template.nodepool.size }}
|
value: {{ _template.nodepool.size }}
|
||||||
|
|
||||||
- target:
|
- target:
|
||||||
group: infrastructure.cluster.x-k8s.io
|
group: infrastructure.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
kind: VSphereMachineTemplate
|
kind: VSphereMachineTemplate
|
||||||
|
@ -119,9 +119,9 @@ components:
|
|||||||
workload:
|
workload:
|
||||||
version:
|
version:
|
||||||
calico: v3.25.0
|
calico: v3.25.0
|
||||||
k8s: v1.25.9
|
k8s: v1.25.10
|
||||||
node_template:
|
node_template:
|
||||||
url: https://{{ repo_username }}:{{ repo_password }}@sn.itch.fyi/Repository/rel/ubuntu-2204-kube-v1.25.9.ova
|
url: https://{{ repo_username }}:{{ repo_password }}@sn.itch.fyi/Repository/rel/ubuntu-2204-kube-v1.25.10.ova
|
||||||
|
|
||||||
# dex:
|
# dex:
|
||||||
# helm:
|
# helm:
|
||||||
|
Reference in New Issue
Block a user