Skip to content

Migrating from k3s to rke2 CoreDNS customisation #5006

Closed Answered by ataraxus
ataraxus asked this question in Q&A
Discussion options

You must be logged in to vote

Our solution looks like this:

apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
  name: rke2-coredns
  namespace: kube-system
spec:
  valuesContent: |-
    extraConfig:
      import:
        parameters: /etc/coredns/custom/*.server
    extraVolumes:
      - name: config-volume-custom
        configMap:
          name: coredns-custom
    extraVolumeMounts:
      - name: config-volume-custom
        mountPath: /etc/coredns/custom
        readOnly: true

with a core-custom config map like this:

apiVersion: v1
kind: ConfigMap
metadata:
  annotations:
    objectset.rio.cattle.io/owner-name: coredns
    objectset.rio.cattle.io/owner-namespace: kube-system
  name: coredns-custom
  na…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ataraxus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant