Skip to content

Commit

Permalink
Add machinepools to ipv6 template
Browse files Browse the repository at this point in the history
  • Loading branch information
CecileRobertMichon committed Feb 18, 2023
1 parent ccac24e commit 01d1723
Show file tree
Hide file tree
Showing 3 changed files with 166 additions and 0 deletions.
83 changes: 83 additions & 0 deletions templates/test/ci/cluster-template-prow-ipv6.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions templates/test/ci/prow-ipv6/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ kind: Kustomization
namespace: default
resources:
- ../../../flavors/ipv6
- machine-pool-ipv6.yaml
patchesStrategicMerge:
- ../patches/tags.yaml
- ../patches/controller-manager.yaml
82 changes: 82 additions & 0 deletions templates/test/ci/prow-ipv6/machine-pool-ipv6.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
apiVersion: cluster.x-k8s.io/v1beta1
kind: MachinePool
metadata:
name: ${CLUSTER_NAME}-mp-0
namespace: default
spec:
clusterName: ${CLUSTER_NAME}
replicas: ${WORKER_MACHINE_COUNT}
template:
spec:
bootstrap:
configRef:
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfig
name: ${CLUSTER_NAME}-mp-0
clusterName: ${CLUSTER_NAME}
infrastructureRef:
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureMachinePool
name: ${CLUSTER_NAME}-mp-0
version: ${KUBERNETES_VERSION}
---
apiVersion: infrastructure.cluster.x-k8s.io/v1beta1
kind: AzureMachinePool
metadata:
name: ${CLUSTER_NAME}-mp-0
namespace: default
spec:
location: ${AZURE_LOCATION}
strategy:
rollingUpdate:
deletePolicy: Oldest
maxSurge: 25%
maxUnavailable: 1
type: RollingUpdate
template:
osDisk:
diskSizeGB: 30
managedDisk:
storageAccountType: Premium_LRS
osType: Linux
sshPublicKey: ${AZURE_SSH_PUBLIC_KEY_B64:=""}
vmSize: ${AZURE_NODE_MACHINE_TYPE}
---
apiVersion: bootstrap.cluster.x-k8s.io/v1beta1
kind: KubeadmConfig
metadata:
name: ${CLUSTER_NAME}-mp-0
namespace: default
spec:
clusterConfiguration:
apiServer:
extraArgs:
bind-address: '::'
controllerManager:
extraArgs:
bind-address: '::'
scheduler:
extraArgs:
bind-address: '::'
files:
- contentFrom:
secret:
key: worker-node-azure.json
name: ${CLUSTER_NAME}-md-0-azure-json
owner: root:root
path: /etc/kubernetes/azure.json
permissions: "0644"
joinConfiguration:
nodeRegistration:
kubeletExtraArgs:
azure-container-registry-config: /etc/kubernetes/azure.json
cloud-config: /etc/kubernetes/azure.json
cloud-provider: azure
cluster-dns: '[fd00::10]'
node-ip: '::'
name: '{{ ds.meta_data["local_hostname"] }}'
postKubeadmCommands:
- echo "DNSStubListener=no" >> /etc/systemd/resolved.conf
- mv /etc/resolv.conf /etc/resolv.conf.OLD && ln -s /run/systemd/resolve/resolv.conf
/etc/resolv.conf
- systemctl restart systemd-resolved

0 comments on commit 01d1723

Please sign in to comment.