Last active
March 1, 2022 02:15
-
-
Save umesh-cloudside/8d164f8dbe613e68a07ba3cac8356b5d to your computer and use it in GitHub Desktop.
admin-cluster.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: AdminCluster | |
#name of your admin cluster, must be unique | |
name: "gke-admin-cluster" | |
# (Required) Absolute path to a GKE bundle on disk | |
bundlePath: "/var/lib/gke/bundles/gke-onprem-vsphere-1.9.2-gke.4-full.tgz" | |
# (Required) vCenter configuration | |
vCenter: | |
address: "vcenter.cloudside.in" | |
datacenter: "Datacenter" | |
cluster: "umesh-cluster" | |
# Resource pool to use. Specify ***yourfolder/your-cluster/Resources*** if you are on Standard license of VMware vCenter | |
resourcePool: "umesh-folder/umesh-cluster/Resources/" | |
datastore: "server1_datastore1" | |
# Provide the path to vCenter CA certificate pub key for SSL verification | |
caCertPath: "cloudside.pem" | |
# The credentials to connect to vCenter | |
credentials: | |
# reference to external credentials file | |
fileRef: | |
# read credentials from this file | |
path: "/home/ubuntu/credential.yaml" | |
# entry in the credential file | |
entry: "vCenter" | |
folder: "umesh-folder" | |
dataDisk: "admin-disk/admin-cluster-disk.vmdk" | |
# (Required) Network configuration | |
network: | |
hostConfig: | |
# List of DNS servers, you can define your internal DNS server followed by public DNS server | |
dnsServers: | |
- "192.168.200.10" | |
# - "8.8.8.8" | |
# - "8.8.4.4" | |
# List of NTP servers, make sure the whole environment has the same ntp servers | |
ntpServers: | |
- "ntp.ubuntu.com" | |
ipMode: | |
# (Required) Define what IP mode to use ("dhcp" "static" or "none"(multinic only)), I am using Static here | |
type: static | |
ipBlockFilePath: "/home/ubuntu/admin-cluster-ipblock.yaml" | |
# I have saved my admin ipblock file at https://gist.github.com/umesh-cloudside/0e1aec356a9940190ae4b7a2bc127367 | |
# service CIDR can be of /24 but try to keep POD CIDR /16 or based on your expected PODs. we need also define this for user cluster, so keep 4 such range free and alloted for this | |
serviceCIDR: 10.96.232.0/24 | |
podCIDR: 172.16.0.0/16 | |
vCenter: | |
# vSphere network name | |
networkName: "VM Network" | |
# (Required) Load balancer configuration | |
loadBalancer: | |
# (Required) The VIPs to use for load balancing | |
vips: | |
# Used to connect to the Kubernetes API | |
controlPlaneVIP: "10.200.7.15" | |
kind: Seesaw | |
seesaw: | |
ipBlockFilePath: "/home/ubuntu/admin-seesaw-ipblock.yml" | |
# i have saved my seesaw ipblock file @ | |
vrid: 125 | |
# (Required) The IP announced by the master of Seesaw group | |
masterIP: "10.200.7.16" | |
# (Required) The number CPUs per machine | |
cpus: 2 | |
# (Required) Memory size in MB per machine, minimum you can define is 3072 MB. | |
memoryMB: 4096 | |
vCenter: | |
networkName: "VM Network" | |
enableHA: false | |
disableVRRPMAC: true | |
antiAffinityGroups: | |
# Set to false to disable DRS rule creation. You must disable this if you are on standard licnese | |
enabled: false | |
connectivity: connected | |
# (Optional) Specify the proxy configuration | |
proxy: | |
# The URL of the proxy | |
url: "" | |
# The domains and IP addresses excluded from proxying | |
noProxy: "" | |
componentAccessServiceAccountKeyPath: "/home/ubuntu/cloudside-component.json" | |
gkeConnect: | |
projectID: "cloudside-****" | |
registerServiceAccountKeyPath: "/home/ubuntu/cloudside-register.json" | |
stackdriver: | |
projectID: "cloudside-****" | |
clusterLocation: asia-south1 | |
enableVPC: false | |
serviceAccountKeyPath: "/home/ubuntu/cloudside-log-mon.json" | |
disableVsphereResourceMetrics: false | |
autoRepair: | |
enabled: true | |
#that should be enough for you to create the Admin cluster. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment