Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var App = &cli.App{ Name: "k0sctl", Usage: "k0s cluster management tool", Flags: []cli.Flag{ debugFlag, traceFlag, redactFlag, }, Commands: []*cli.Command{ versionCommand, applyCommand, kubeconfigCommand, initCommand, resetCommand, backupCommand, { Name: "config", Usage: "Configuration related sub-commands", Subcommands: []*cli.Command{ configEditCommand, configStatusCommand, }, }, completionCommand, }, EnableBashCompletion: true, }
App is the main urfave/cli.App for k0sctl
View Source
var (
Colorize = aurora.NewAurora(false)
)
View Source
var DefaultK0sYaml = []byte(`apiVersion: k0s.k0sproject.io/v1beta1
kind: Cluster
metadata:
name: k0s
spec:
api:
port: 6443
k0sApiPort: 9443
storage:
type: etcd
network:
podCIDR: 10.244.0.0/16
serviceCIDR: 10.96.0.0/12
provider: kuberouter
kuberouter:
mtu: 0
peerRouterIPs: ""
peerRouterASNs: ""
autoMTU: true
kubeProxy:
disabled: false
mode: iptables
podSecurityPolicy:
defaultPolicy: 00-k0s-privileged
telemetry:
enabled: true
installConfig:
users:
etcdUser: etcd
kineUser: kube-apiserver
konnectivityUser: konnectivity-server
kubeAPIserverUser: kube-apiserver
kubeSchedulerUser: kube-scheduler
konnectivity:
agentPort: 8132
adminPort: 8133
`)
DefaultK0sYaml is pretty much what "k0s default-config" outputs
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.