This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 194
/
defaults.go
51 lines (39 loc) · 1.74 KB
/
defaults.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2021 VMware, Inc. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
package constants
import (
"time"
)
// default value constants
const (
DefaultCNIType = "antrea"
DefaultDevControlPlaneMachineCount = 1
DefaultProdControlPlaneMachineCount = 3
DefaultDevWorkerMachineCount = 1
DefaultProdWorkerMachineCount = 3
DefaultOperationTimeout = 30 * time.Second
DefaultLongRunningOperationTimeout = 30 * time.Minute
DefaultCertmanagerDeploymentTimeout = 40 * time.Minute
DefaultNamespace = "default"
// de-facto defaults initially chosen by kops: https://github.com/kubernetes/kops
DefaultIPv4ClusterCIDR = "100.96.0.0/11"
DefaultIPv4ServiceCIDR = "100.64.0.0/13"
// chosen to match our IPv4 defaults
// use /48 for cluster CIDR because each node gets a /64 by default in IPv6
DefaultIPv6ClusterCIDR = "fd00:100:96::/48"
// use /108 is the max allowed for IPv6
DefaultIPv6ServiceCIDR = "fd00:100:64::/108"
// dual stack IPv4,IPv6 defaults
DefaultDualStackPrimaryIPv4ClusterCIDR = DefaultIPv4ClusterCIDR + "," + DefaultIPv6ClusterCIDR
DefaultDualStackPrimaryIPv4ServiceCIDR = DefaultIPv4ServiceCIDR + "," + DefaultIPv6ServiceCIDR
DefaultDualStackPrimaryIPv6ClusterCIDR = DefaultIPv6ClusterCIDR + "," + DefaultIPv4ClusterCIDR
DefaultDualStackPrimaryIPv6ServiceCIDR = DefaultIPv6ServiceCIDR + "," + DefaultIPv4ServiceCIDR
// DefaultIsWindowsWorkloadCluster is false, indicating that the normal thing to do is, is to make linux clusters.
DefaultIsWindowsWorkloadCluster = false
// Default maximum query per second for the rest config
DefaultQPS = 200
// Default maximum burst for throttle for the rest config
DefaultBurst = 200
// Default ClusterClass version
DefaultClusterClassVersion = "v1.0.0"
)