DocumentationGCPGKE Cluster

GKE Cluster

Prerequisites

  1. Google Cloud Projects w/ Billing Account for Container Cluster and Network Resources
  2. Kubernetes Client-Go Credential Plugins Installed
sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/project-planton/kube-client-go-exec-plugins/9ee982a053439bd60b1eead65c73936a57d25735/install.sh)"

Manifest

apiVersion: gcp.project.planton/v1
kind: GkeCluster
metadata:
  name: dev-cluster
spec:
  clusterProjectId: <enter gcp project id>
  region: asia-south1
  zone: asia-south1-a
  clusterAutoscalingConfig:
    isEnabled: false
  kubernetesAddons:
    isInstallCertManager: true
    isInstallExternalDns: true
    isInstallExternalSecrets: true
    isInstallIstio: true
    isInstallKafkaOperator: true
    isInstallPostgresOperator: true
  nodePools:
    - machineType: n2-custom-8-8192
      maxNodeCount: 2
      minNodeCount: 1
      name: n2-custom-8-8192
  ingressDnsDomains:
    - name: <enter dns domain name>
      dnsZoneGcpProjectId: <enter-dns-project>
      isTlsEnabled: true

Deploy

project-planton pulumi refresh --stack <pulumi-org>/<pulumi-project>/<pulumi-stack-name> --manifest manifest-path.yaml