mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-31 19:41:17 +02:00
This allows for users to specifify which version of Kubernetes to use. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
32 lines
872 B
Go
32 lines
872 B
Go
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
package generate
|
|
|
|
const workerTempl = `#!talos
|
|
version: ""
|
|
kubernetesVersion: {{ .KubernetesVersion }}
|
|
security: null
|
|
services:
|
|
init:
|
|
cni: flannel
|
|
kubeadm:
|
|
configuration: |
|
|
apiVersion: kubeadm.k8s.io/v1beta2
|
|
kind: JoinConfiguration
|
|
discovery:
|
|
bootstrapToken:
|
|
token: '{{ .KubeadmTokens.BootstrapToken }}'
|
|
unsafeSkipCAVerification: true
|
|
apiServerEndpoint: "{{ .GetAPIServerEndpoint "443" }}"
|
|
nodeRegistration:
|
|
taints: []
|
|
kubeletExtraArgs:
|
|
node-labels: ""
|
|
feature-gates: ""
|
|
trustd:
|
|
token: '{{ .TrustdInfo.Token }}'
|
|
endpoints: [ {{ .Endpoints }} ]
|
|
`
|