Compare commits
No commits in common. "9cbb84a0f3ad9cc542d65017d94997eb34eac2f6" and "dda14af23886d228dadb6e64e732bf250940c57f" have entirely different histories.
9cbb84a0f3
...
dda14af238
@ -29,3 +29,4 @@
|
|||||||
- import_tasks: manifests.yml
|
- import_tasks: manifests.yml
|
||||||
- import_tasks: kubeadm.yml
|
- import_tasks: kubeadm.yml
|
||||||
- import_tasks: containerimages.yml
|
- import_tasks: containerimages.yml
|
||||||
|
- import_tasks: nodetemplates.yml
|
||||||
|
4
ansible/roles/assets/tasks/nodetemplates.yml
Normal file
4
ansible/roles/assets/tasks/nodetemplates.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
- name: Download node-template image
|
||||||
|
ansible.builtin.uri:
|
||||||
|
url: "{{ components.clusterapi.workload.node_template.url }}"
|
||||||
|
dest: /opt/workloadcluster/node-templates/{{ components.clusterapi.workload.node_template.url | basename}}
|
@ -172,7 +172,7 @@
|
|||||||
|
|
||||||
- name: Generate nodepool kustomization manifest
|
- name: Generate nodepool kustomization manifest
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: kustomization.longhorn-storage.j2
|
src: kustomization.nodepool.j2
|
||||||
dest: "{{ capi_clustermanifest.path }}/kustomization.yaml"
|
dest: "{{ capi_clustermanifest.path }}/kustomization.yaml"
|
||||||
vars:
|
vars:
|
||||||
_template:
|
_template:
|
||||||
|
@ -4,6 +4,34 @@ resources:
|
|||||||
- cluster-template.yaml
|
- cluster-template.yaml
|
||||||
|
|
||||||
patches:
|
patches:
|
||||||
|
- patch: |-
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: csi-vsphere-config
|
||||||
|
namespace: '${NAMESPACE}'
|
||||||
|
stringData:
|
||||||
|
data: |
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: csi-vsphere-config
|
||||||
|
namespace: kube-system
|
||||||
|
stringData:
|
||||||
|
csi-vsphere.conf: |+
|
||||||
|
[Global]
|
||||||
|
insecure-flag = true
|
||||||
|
thumbprint = "${VSPHERE_TLS_THUMBPRINT}"
|
||||||
|
cluster-id = "${NAMESPACE}/${CLUSTER_NAME}"
|
||||||
|
|
||||||
|
[VirtualCenter "${VSPHERE_SERVER}"]
|
||||||
|
user = "${VSPHERE_USERNAME}"
|
||||||
|
password = "${VSPHERE_PASSWORD}"
|
||||||
|
datacenters = "${VSPHERE_DATACENTER}"
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
public-network = "${VSPHERE_NETWORK}"
|
||||||
|
type: Opaque
|
||||||
- patch: |-
|
- patch: |-
|
||||||
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
|
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
|
||||||
kind: KubeadmControlPlane
|
kind: KubeadmControlPlane
|
||||||
@ -67,7 +95,6 @@ patches:
|
|||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
diskGiB: 60
|
|
||||||
network:
|
network:
|
||||||
devices:
|
devices:
|
||||||
- dhcp4: false
|
- dhcp4: false
|
||||||
@ -87,7 +114,6 @@ patches:
|
|||||||
spec:
|
spec:
|
||||||
template:
|
template:
|
||||||
spec:
|
spec:
|
||||||
diskGiB: 60
|
|
||||||
network:
|
network:
|
||||||
devices:
|
devices:
|
||||||
- dhcp4: false
|
- dhcp4: false
|
||||||
@ -99,25 +125,6 @@ patches:
|
|||||||
- {{ _template.network.dnsserver }}
|
- {{ _template.network.dnsserver }}
|
||||||
networkName: '${VSPHERE_NETWORK}'
|
networkName: '${VSPHERE_NETWORK}'
|
||||||
|
|
||||||
- target:
|
|
||||||
group: addons.cluster.x-k8s.io
|
|
||||||
version: v1beta1
|
|
||||||
kind: ClusterResourceSet
|
|
||||||
name: \${CLUSTER_NAME}-crs-0
|
|
||||||
patch: |-
|
|
||||||
- op: replace
|
|
||||||
path: /spec/resources
|
|
||||||
value:
|
|
||||||
- kind: Secret
|
|
||||||
name: cloud-controller-manager
|
|
||||||
- kind: Secret
|
|
||||||
name: cloud-provider-vsphere-credentials
|
|
||||||
- kind: ConfigMap
|
|
||||||
name: cpi-manifests
|
|
||||||
- op: add
|
|
||||||
path: /spec/strategy
|
|
||||||
value: Reconcile
|
|
||||||
|
|
||||||
- target:
|
- target:
|
||||||
group: controlplane.cluster.x-k8s.io
|
group: controlplane.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
@ -191,8 +198,6 @@ patches:
|
|||||||
- op: replace
|
- op: replace
|
||||||
path: /metadata/name
|
path: /metadata/name
|
||||||
value: ${CLUSTER_NAME}-master
|
value: ${CLUSTER_NAME}-master
|
||||||
- op: remove
|
|
||||||
path: /spec/template/spec/thumbprint
|
|
||||||
- target:
|
- target:
|
||||||
group: controlplane.cluster.x-k8s.io
|
group: controlplane.cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
@ -232,8 +237,6 @@ patches:
|
|||||||
- op: replace
|
- op: replace
|
||||||
path: /spec/template/spec/memoryMiB
|
path: /spec/template/spec/memoryMiB
|
||||||
value: {{ _template.nodesize.memory }}
|
value: {{ _template.nodesize.memory }}
|
||||||
- op: remove
|
|
||||||
path: /spec/template/spec/thumbprint
|
|
||||||
- target:
|
- target:
|
||||||
group: cluster.x-k8s.io
|
group: cluster.x-k8s.io
|
||||||
version: v1beta1
|
version: v1beta1
|
||||||
@ -255,12 +258,3 @@ patches:
|
|||||||
- op: replace
|
- op: replace
|
||||||
path: /metadata/name
|
path: /metadata/name
|
||||||
value: ${CLUSTER_NAME}-worker
|
value: ${CLUSTER_NAME}-worker
|
||||||
|
|
||||||
- target:
|
|
||||||
group: infrastructure.cluster.x-k8s.io
|
|
||||||
version: v1beta1
|
|
||||||
kind: VSphereCluster
|
|
||||||
name: .*
|
|
||||||
patch: |-
|
|
||||||
- op: remove
|
|
||||||
path: /spec/thumbprint
|
|
||||||
|
@ -122,8 +122,8 @@ components:
|
|||||||
calico: v3.27.3
|
calico: v3.27.3
|
||||||
k8s: v1.30.1
|
k8s: v1.30.1
|
||||||
node_template:
|
node_template:
|
||||||
# Not used anymore; should be uploaded to hypervisor manually!
|
# url: https://{{ repo_username }}:{{ repo_password }}@sn.itch.fyi/Repository/rel/ubuntu-2204-kube-v1.27.1.ova
|
||||||
# https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/download/templates%2Fv1.30.0/
|
url: https://github.com/kubernetes-sigs/cluster-api-provider-vsphere/releases/download/templates%2Fv1.30.0/ubuntu-2204-kube-v1.30.0.ova
|
||||||
|
|
||||||
dex:
|
dex:
|
||||||
helm:
|
helm:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user