Skip to content

Commit

Permalink
add dns loadbalancing flavor for rke2 and k3s (#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
amold1 authored Jun 27, 2024
1 parent 1c80718 commit a570ace
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 20 deletions.
20 changes: 20 additions & 0 deletions templates/flavors/k3s/dns-loadbalancing/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../default

patches:
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha2
kind: LinodeCluster
patch: |-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeCluster
metadata:
name: ${CLUSTER_NAME}
spec:
network:
loadBalancerType: dns
dnsRootDomain: ${DNS_ROOT_DOMAIN}
dnsUniqueIdentifier: ${DNS_UNIQUE_ID}
20 changes: 0 additions & 20 deletions templates/flavors/kubeadm/dns-loadbalancing/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,3 @@ patches:
loadBalancerType: dns
dnsRootDomain: ${DNS_ROOT_DOMAIN}
dnsUniqueIdentifier: ${DNS_UNIQUE_ID}
- target:
kind: Secret
name: linode-${CLUSTER_NAME}-crs-0
patch: |-
apiVersion: v1
kind: Secret
type: addons.cluster.x-k8s.io/resource-set
metadata:
name: linode-${CLUSTER_NAME}-crs-0
stringData:
linode-token-region.yaml: |-
kind: Secret
apiVersion: v1
metadata:
name: linode-token-region
namespace: kube-system
stringData:
apiToken: ${LINODE_TOKEN}
region: ${LINODE_REGION}
dnsToken: ${LINODE_DNS_TOKEN:-""}
20 changes: 20 additions & 0 deletions templates/flavors/rke2/dns-loadbalancing/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../default

patches:
- target:
group: infrastructure.cluster.x-k8s.io
version: v1alpha2
kind: LinodeCluster
patch: |-
apiVersion: infrastructure.cluster.x-k8s.io/v1alpha2
kind: LinodeCluster
metadata:
name: ${CLUSTER_NAME}
spec:
network:
loadBalancerType: dns
dnsRootDomain: ${DNS_ROOT_DOMAIN}
dnsUniqueIdentifier: ${DNS_UNIQUE_ID}

0 comments on commit a570ace

Please sign in to comment.