Documentation ¶
Index ¶
- Constants
- func GetHomeFolder() string
- func GetK8sConfigFolder() string
- func GetK8sConfigPath() string
- func GetK8sKitReleaseURL(binaryName, version string) string
- func GetK8sNodesConfigFilePath() string
- func GetK8sTmpConfigPath() string
- func GetKubeVConfigFilePath() string
- func GetKubeVHomeFolder() string
- func GetKubernetesReleaseURL(binaryName, version string) string
- func GetLocalK8sKitFilePath(binaryName, version string) string
- func GetLocalK8sKitPath(binaryName, version string) string
- func GetRemoteK8sNodesConfigFilePath() string
- func GetRemoteKubeVConfigFilePath() string
- func GetRemoteVMPrivateKeyPath() string
- func GetRemoteVMPublicKeyPath() string
- func GetTmpKubeVConfigFilePath() string
- func GetVMPrivateKeyPath() string
- func GetVMPublicKeyPath() string
Constants ¶
View Source
const ( DefaultPhotonVersion = "v2.0" KubeAdmBinaryName = "kubeadm" KubeCtlBinaryName = "kubectl" DockerBinaryName = "docker" CriCtlBinaryName = "crictl" CNIKits = "cni.tgz" GuestKubeCtlBinaryName = "kubectl.guest" KubeletBinaryName = "kubelet" PhotonOVAName = "photon.ova" DefaultVMName = "Photon" PhotonVMUsername = "root" PhotonVMOriginalPassword = "changeme" PhotonVMPassword = "kubernetes" KubeletServiceFile = "/etc/systemd/system/kubelet.service" KubeletSystemdConfFile = "/etc/systemd/system/kubelet.service.d/10-kubeadm.conf" DockerServiceFile = "/usr/lib/systemd/system/docker.service" DefaultVMTemplateName = "kubev-template" K8sNodesConfigFileName = "kubev-k8s.json" KuebVConfigFileName = "kubev.yaml" DefaultRemoteDatacenter = "Datacenter" DefaultRemotePort = "443" DefaultRemoteCPU = "2" DefaultRemoteMemory = "2048" DefaultRemoteNetwork = "VM Network" DefaultKubernetesVersion = "v1.13.0" DefaultKubernetesWorkderNodeNum = "5" )
View Source
const DeleteWorkNode = "kubectl delete node %s"
View Source
const DockerAlias = `#!/bin/sh
%s -H tcp://%s "$@"
`
View Source
const DockerService = `` /* 1176-byte string literal not displayed */
View Source
const KubeAdmInit = `` /* 354-byte string literal not displayed */
View Source
const KubeAdmJoin = "kubeadm token create --print-join-command"
View Source
const KubeletService = `` /* 222-byte string literal not displayed */
View Source
const KubeletSystemd = `` /* 901-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
func GetHomeFolder ¶
func GetHomeFolder() string
func GetK8sConfigFolder ¶
func GetK8sConfigFolder() string
func GetK8sConfigPath ¶
func GetK8sConfigPath() string
func GetK8sKitReleaseURL ¶
func GetK8sNodesConfigFilePath ¶
func GetK8sNodesConfigFilePath() string
func GetK8sTmpConfigPath ¶
func GetK8sTmpConfigPath() string
func GetKubeVConfigFilePath ¶
func GetKubeVConfigFilePath() string
func GetKubeVHomeFolder ¶
func GetKubeVHomeFolder() string
func GetKubernetesReleaseURL ¶
func GetLocalK8sKitFilePath ¶
func GetLocalK8sKitPath ¶
func GetRemoteK8sNodesConfigFilePath ¶
func GetRemoteK8sNodesConfigFilePath() string
func GetRemoteKubeVConfigFilePath ¶
func GetRemoteKubeVConfigFilePath() string
func GetRemoteVMPrivateKeyPath ¶
func GetRemoteVMPrivateKeyPath() string
func GetRemoteVMPublicKeyPath ¶
func GetRemoteVMPublicKeyPath() string
func GetTmpKubeVConfigFilePath ¶
func GetTmpKubeVConfigFilePath() string
func GetVMPrivateKeyPath ¶
func GetVMPrivateKeyPath() string
func GetVMPublicKeyPath ¶
func GetVMPublicKeyPath() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.