anthos-bm-gcp-terraform/resources/templates/anthos_gce_cluster.tpl (75 lines of code) (raw):
---
gcrKeyPath: /root/bm-gcr.json
sshPrivateKeyPath: /root/.ssh/id_rsa
gkeConnectAgentServiceAccountKeyPath: /root/bm-gcr.json
gkeConnectRegisterServiceAccountKeyPath: /root/bm-gcr.json
cloudOperationsServiceAccountKeyPath: /root/bm-gcr.json
---
apiVersion: v1
kind: Namespace
metadata:
name: ${clusterId}-ns
---
apiVersion: baremetal.cluster.gke.io/v1
kind: Cluster
metadata:
name: ${clusterId}
namespace: ${clusterId}-ns
spec:
type: hybrid
anthosBareMetalVersion: ${abmVersion}
gkeConnect:
projectID: ${projectId}
controlPlane:
nodePoolSpec:
clusterName: ${clusterId}
nodes:
%{ for ip in controlPlaneIps ~}
- address: ${ip}
%{ endfor }
clusterNetwork:
pods:
cidrBlocks:
- 192.168.0.0/16
services:
cidrBlocks:
- 172.26.232.0/24
loadBalancer:
mode: bundled
ports:
controlPlaneLBPort: 443
vips:
controlPlaneVIP: 10.200.0.49
ingressVIP: 10.200.0.50
addressPools:
- name: pool1
addresses:
- 10.200.0.50-10.200.0.70
clusterOperations:
# might need to be this location
location: us-central1
projectID: ${projectId}
storage:
lvpNodeMounts:
path: /mnt/localpv-disk
storageClassName: node-disk
lvpShare:
numPVUnderSharedPath: 5
path: /mnt/localpv-share
storageClassName: local-shared
clusterSecurity:
authorization:
clusterAdmin:
gcpAccounts: [%{ for idx, acc in gcp_accounts ~} %{ if idx == 0 }${acc}%{ else }, ${acc}%{ endif }%{ endfor }]
---
apiVersion: baremetal.cluster.gke.io/v1
kind: NodePool
metadata:
name: node-pool-1
namespace: ${clusterId}-ns
spec:
clusterName: ${clusterId}
nodes:
%{ for ip in workerNodeIps ~}
- address: ${ip}
%{ endfor }