How do I set up the INTERNAL LoadBalancer? | Как настроить INTERNAL LoadBalancer? |
Attach the following annotation to the service: | Для настройки INTERNAL LoadBalancer’а установите аннотацию для сервиса: |
yaml yandex.cpi.flant.com/listener-subnet-id: SubnetID | yaml yandex.cpi.flant.com/listener-subnet-id: SubnetID |
The annotation links the LoadBalancer with the appropriate Subnet. | Аннотация указывает, какой subnet будет слушать LoadBalancer. |
How to reserve a public IP address? | Как зарезервировать публичный IP-адрес? |
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 | Проблемы
|
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 | Использование в настройках DHCP-серверов адресов DNS, отличающихся от предоставляемых Yandex Cloud, является временным решением. От него можно будет отказаться, когда Yandex Cloud введет услугу Managed DNS. Чтобы обойти ограничения, описанные ниже, рекомендуется использовать |
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. | При использовании опции |
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. | Не используйте эту опцию, если указанные рекурсивные DNS-серверы не могут разрешать тот же список зон, что сможет разрешать рекурсивный DNS-сервер в подсети Yandex Cloud. |
How to set a custom StorageClass as default? | Как назначить произвольный StorageClass используемым по умолчанию? |
Specify the StorageClass name in the defaultClusterStorageClass parameter in the | Чтобы назначить произвольный StorageClass используемым по умолчанию для ваших PVC, укажите его имя в параметре defaultClusterStorageClass модуля |
shell kubectl edit mc global | shell kubectl edit mc global |
Adding CloudStatic nodes to a cluster | Добавление CloudStatic-узлов в кластер |
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’ |
How do I create a cluster in a new VPC and set up bastion host to access the nodes? | Как создать кластер в новом VPC и развернуть bastion-хост для доступа к узлам? |
|
|
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 |