Как настроить INTERNAL LoadBalancer? | How do I set up the INTERNAL LoadBalancer? |
Для настройки INTERNAL LoadBalancer’а установите аннотацию для сервиса: | Attach the following annotation to the service: |
yaml yandex.cpi.flant.com/listener-subnet-id: SubnetID | yaml yandex.cpi.flant.com/listener-subnet-id: SubnetID |
Аннотация указывает, какой subnet будет слушать LoadBalancer. | The annotation links the LoadBalancer with the appropriate Subnet. |
Как зарезервировать публичный IP-адрес? | How to reserve a public IP address? |
Для использования в | This on is used in |
shell $ yc vpc address create –external-ipv4 zone=ru-central1-a id: e9b4cfmmnc1mhgij75n7 folder_id: b1gog0h9k05lhqe5d88l created_at: “2020-09-01T09:29:33Z” external_ipv4_address: address: 178.154.226.159 zone_id: ru-central1-a requirements: {} reserved: true | shell $ yc vpc address create –external-ipv4 zone=ru-central1-a id: e9b4cfmmnc1mhgij75n7 folder_id: b1gog0h9k05lhqe5d88l created_at: “2020-09-01T09:29:33Z” external_ipv4_address: address: 178.154.226.159 zone_id: ru-central1-a requirements: {} reserved: true |
Проблемы
| dhcpOptions-related problems and ways to address them |
Использование в настройках DHCP-серверов адресов DNS, отличающихся от предоставляемых Yandex Cloud, является временным решением. От него можно будет отказаться, когда Yandex Cloud введет услугу Managed DNS. Чтобы обойти ограничения, описанные ниже, рекомендуется использовать | Using DNS servers that differ from those provided by Yandex Cloud in the DHCP settings is a temporary solution. It will be abandoned after Yandex Cloud will introduce the Managed DNS service. To get around the restrictions described below, we recommend using |
Изменение параметров | Editing parameters |
Обратите внимание на следующие особенности: | Pay attention to the following nuances: |
|
|
Особенности использования | Aspects of the use |
При использовании опции | If the dhcpOptions parameter is set, all DNS are routed to the DNS servers specified. These DNS servers must serve DNS requests to the Internet and (if needed) resolve intranet resources. |
Не используйте эту опцию, если указанные рекурсивные DNS-серверы не могут разрешать тот же список зон, что сможет разрешать рекурсивный DNS-сервер в подсети Yandex Cloud. | Do not use this option if the recursive DNSs specified cannot resolve the same list of zones that the recursive DNSs in the Yandex Cloud subnet can resolve. |
Как назначить произвольный StorageClass используемым по умолчанию? | How to set a custom StorageClass as default? |
Чтобы назначить произвольный StorageClass используемым по умолчанию для ваших PVC, укажите его имя в параметре defaultClusterStorageClass модуля | Specify the StorageClass name in the defaultClusterStorageClass parameter in the |
shell kubectl edit mc global | shell kubectl edit mc global |
Добавление CloudStatic-узлов в кластер | Adding CloudStatic nodes to a cluster |
В метаданные виртуальных машин, которые вы хотите включить в кластер в качестве узлов, добавьте (Изменить ВМ -> Метадата) ключ | For VMs that you want to add to the cluster as nodes, add the |
| You can find out the |
shell kubectl -n kube-system get secret d8-provider-cluster-configuration -o json | jq –raw-output ‘.data.”cloud-provider-cluster-configuration.yaml”’ | base64 -d | grep ‘^nodeNetworkCIDR’ | shell kubectl -n kube-system get secret d8-provider-cluster-configuration -o json | jq –raw-output ‘.data.”cloud-provider-cluster-configuration.yaml”’ | base64 -d | grep ‘^nodeNetworkCIDR’ |
Как создать кластер в новом VPC и развернуть bastion-хост для доступа к узлам? | How do I create a cluster in a new VPC and set up bastion host to access the nodes? |
|
|
shell dhctl bootstrap-phase base-infra –config config.yml | shell dhctl bootstrap-phase base-infra –config config.yml |
|
|
shell
yc compute instance create | shell
yc compute instance create |
|
|
shell
dhctl bootstrap –ssh-bastion-host=178.154.226.159 –ssh-bastion-user=yc-user | shell
dhctl bootstrap –ssh-bastion-host=178.154.226.159 –ssh-bastion-user=yc-user |