Skip to content

marselsultanov/yc-compute-k8s

Repository files navigation

yc-compute-k8s

Prerequisites:

  1. VPC network and subnet
  2. NAT for VPC network
  3. VM with public ip (for use as ssh-proxy)
  4. Service account (for terraform and instance group)

Replace with yours:

  1. cloud_id and folder_id
  2. service_account_key_file and service_account_id
  3. subnet_ids
  4. ip_address (also in kubeadm-config.yaml)
  5. ssh-keys (also in cloud-init-k8s-prerequisites.yaml)

Connect to VMs:

  1. ssh -J ssh-proxy almalinux@k8s-control-1
  2. ssh -J ssh-proxy almalinux@k8s-worker-1
  3. ssh -J ssh-proxy almalinux@k8s-worker-2
  4. ssh -J ssh-proxy almalinux@k8s-worker-3

After install:

  1. kubectl create secret docker-registry dockerhub --docker-server=https://index.docker.io/v1/ --docker-username= --docker-password= --docker-email=
  2. kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "dockerhub"}]}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages