github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/pkg/cli/cmd/infrastructure/constant/const.go (about) 1 /* 2 Copyright (C) 2022-2023 ApeCloud Co., Ltd 3 4 This file is part of KubeBlocks project 5 6 This program is free software: you can redistribute it and/or modify 7 it under the terms of the GNU Affero General Public License as published by 8 the Free Software Foundation, either version 3 of the License, or 9 (at your option) any later version. 10 11 This program is distributed in the hope that it will be useful 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 GNU Affero General Public License for more details. 15 16 You should have received a copy of the GNU Affero General Public License 17 along with this program. If not, see <http://www.gnu.org/licenses/>. 18 */ 19 20 package constant 21 22 const ( 23 ContainerdService = "containerd.service.tpl" 24 ContainerdConfig = "containerd.config.toml.tpl" 25 CRICtlConfig = "crictl.yaml.tpl" 26 ConfigureOSScripts = "init_os.sh.tpl" 27 28 ContainerdServiceInstallPath = "/etc/systemd/system/containerd.service" 29 ContainerdConfigInstallPath = "/etc/containerd/config.toml" 30 CRICtlConfigInstallPath = "/etc/crictl.yaml" 31 32 DefaultSandBoxImage = "k8s.gcr.io/pause:3.8" 33 34 DefaultK8sVersion = "v1.26.5" // https://github.com/kubernetes/kubernetes/releases/tag/v1.26.5 35 DefaultEtcdVersion = "v3.4.26" // https://github.com/etcd-io/etcd/releases/tag/v3.4.26 36 DefaultCRICtlVersion = "v1.26.0" // https://github.com/kubernetes-sigs/cri-tools/releases/tag/v1.26.0 37 DefaultHelmVersion = "v3.12.0" // https://github.com/helm/helm/releases 38 DefaultRuncVersion = "v1.1.7" // https://github.com/opencontainers/runc/releases 39 DefaultCniVersion = "v1.3.0" // https://github.com/containernetworking/plugins/releases 40 DefaultContainerdVersion = "1.7.2" // https://github.com/containerd/containerd/releases 41 ) 42 43 const ( 44 DefaultK8sDNSDomain = "cluster.local" 45 DefaultAPIDNSDomain = "lb.kubeblocks.local" 46 DefaultK8sProxyMode = "ipvs" 47 DefaultAPIServerPort = 6443 48 49 DefaultNetworkPlugin = "cilium" 50 )