forked from yandex-cloud/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* API Gateway, Cloud Functions, Serverless Containers: updated information about roles. * Data Transfer: added a tutorial on delivering data from Managed Service for PostgreSQL to Managed Service for ClickHouse. * Managed Service for OpenSearch: added pricing details. * Translations updated. * Fixes and improvements.
- Loading branch information
1 parent
b0cb378
commit ff0daee
Showing
235 changed files
with
3,388 additions
and
1,420 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
(optional) To automatically back up your instances using [{{ backup-name }}](../../backup/), under **Backup**, select the option of connecting an instance to the service. | ||
|
||
The option shows up if you requested access to the service from our [technical support]({{ link-console-support }}/create-ticket) and selected a supported operating system for your VM. For more information about setting up a VM, see [{#T}](../../backup/concepts/vm-connection.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% note info %} | ||
|
||
It currently isn't possible to reset a password on a Linux virtual machine using {{ yandex-cloud }} tools. | ||
|
||
{% endnote %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
To create an empty disk: | ||
|
||
1. Describe the resource parameters in the `yandex_compute_disk` configuration file. | ||
|
||
Example configuration file structure: | ||
|
||
```hcl | ||
resource "yandex_compute_disk" "empty-disk" { | ||
name = "empty-disk" | ||
type = "network-hdd" | ||
zone = "<availability_zone>" | ||
size = <disk_size> | ||
block_size = <block_size> | ||
} | ||
``` | ||
Where: | ||
* `name`: Disk name. Name format: | ||
|
||
{% include [name-format](../../_includes/name-format.md) %} | ||
|
||
* `type`: Type of the disk being created. | ||
* `zone`: [Availability zone](../../overview/concepts/geo-scope.md). The availability zone for a disk must be the same as that of the placement group where you want to create the disk. We recommend creating disks in the `{{ region-id }}-a` or `{{ region-id }}-b` availability zone. | ||
* `size`: Disk size in GB. The maximum disk size depends on the chosen block size. | ||
* `block_size`: Block size in bytes (the minimum storage size for information on the disk). By default, the block size of all created disks is 4 KB, but that's not enough for disks larger than 8 TB. For more information, see [{#T}](../../compute/operations/disk-create/empty-disk-blocksize.md). | ||
|
||
For more information about the `yandex_compute_disk` resource, see the [provider documentation]({{ tf-provider-link }}/compute_disk). | ||
|
||
1. Make sure that the configuration files are valid. | ||
|
||
1. In the command line, go to the directory where you created the configuration file. | ||
1. Run the check using the command: | ||
|
||
```bash | ||
terraform plan | ||
``` | ||
|
||
If the configuration is described correctly, the terminal displays a list of created resources and their parameters. If the configuration contains errors, {{ TF }} will point them out. | ||
|
||
1. Deploy the cloud resources. | ||
|
||
1. If the configuration doesn't contain any errors, run the command: | ||
```bash | ||
terraform apply | ||
``` | ||
1. Confirm that you want to create the resources. | ||
Afterwards, all the necessary resources are created in the specified folder. You can verify that the resources are there and properly configured in the [management console]({{ link-console-main }}) or using the following [CLI](../../cli/quickstart.md) command: | ||
```bash | ||
yc compute disk list | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
PowerShell Remoting Protocol (PSRP) with access via HTTPS is enabled for images of all versions and editions of the Windows operating system prepared for {{ yandex-cloud }}. When the VM starts (its status is `RUNNING`), you can connect to it using PSRP. | ||
|
||
[Security groups](../../vpc/concepts/security-groups.md) of the VM must allow incoming TCP traffic to port 5986. | ||
|
||
{% include [security-groups-note](../../compute/_includes_service/security-groups-note.md) %} | ||
|
||
To do this, specify its public IP address or fully qualified domain name ([FQDN](https://en.wikipedia.org/wiki/Fully_qualified_domain_name)). Access using FQDN is possible from another {{ yandex-cloud }} VM if it's connected to the same network. You can find out the IP address and FQDN in the management console. Go to the **Network** section on the virtual machine's page. | ||
|
||
To connect to the VM: | ||
|
||
1. Open the PowerShell console. | ||
|
||
1. Create an object named `Credentials` and replace the `<password>` password with that of the `Administrator` user, which you specified when creating the VM: | ||
|
||
```powershell | ||
$myUserName = "Administrator" | ||
$myPlainTextPassword = "<password>" | ||
$myPassword = $MyPlainTextPassword | ConvertTo-SecureString -AsPlainText -Force | ||
$credential = New-Object System.Management.Automation.PSCredential($MyUserName, $myPassword) | ||
``` | ||
1. Make sure that the username and password entered in the object are correct: | ||
```powershell | ||
$networkCredential = $credential.GetNetworkCredential() | ||
$networkCredential | Select-Object UserName, Password | ||
``` | ||
Result: | ||
```text | ||
UserName Password | ||
-------- -------- | ||
Administrator <password> | ||
``` | ||
1. Create a variable for the VM's IP address: | ||
```powershell | ||
$ipAddress = "<ip-address>" | ||
``` | ||
1. Create an object named `SessionOption`. In the object, specify the checks to skip: | ||
```powershell | ||
$sessionOption = New-PSSessionOption ` | ||
-SkipCACheck ` | ||
-SkipCNCheck ` | ||
-SkipRevocationCheck | ||
``` | ||
1. Connect to an interactive session: | ||
```powershell | ||
$psSession = @{ | ||
ComputerName = $ipAddress | ||
UseSSL = $true | ||
Credential = $credential | ||
SessionOption = $sessionOption | ||
} | ||
Enter-PSSession @psSession | ||
``` | ||
Result: | ||
```text | ||
[<ip-address>]: PS C:\Users\$myUserName\Documents> | ||
``` | ||
Terminate the session: | ||
```powershell | ||
Exit-PSSession | ||
``` | ||
1. Create a session for non-interactive command execution: | ||
```powershell | ||
$session = New-PSSession @psSession | ||
``` | ||
Get a list of open sessions: | ||
```powershell | ||
Get-PSSession | ||
``` | ||
Result: | ||
```text | ||
Id Name ComputerName ComputerType State ConfigurationName Availability | ||
-- ---- ------------ ------------ ----- ----------------- ------------ | ||
2 WinRM2 <ip-address> RemoteMachine Opened Microsoft.PowerShell Available | ||
``` | ||
Run the command on a remote VM: | ||
```powershell | ||
$scriptBlock = { Get-Process } | ||
$invokeCommand = @{ | ||
ScriptBlock = $scriptBlock | ||
Session = $session | ||
} | ||
Invoke-Command @invokeCommand | ||
``` | ||
Result: | ||
```text | ||
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName PSComputerName | ||
------- ------ ----- ----- ------ -- -- ----------- -------------- | ||
249 13 4248 16200 0.11 4176 2 conhost <ip-address> | ||
283 12 1888 4220 0.20 420 0 csrss <ip-address> | ||
... | ||
``` | ||
#### See also {#see-also} | ||
* [PowerShell sessions (PSSessions)](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_pssessions) | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
en/_includes/data-transfer/troubles/postgresql/lock-replication.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
### Coudn't create a replication slot at the activation step {#lock-replication} | ||
|
||
In the beginning of the transfer, one or more [replication slots]({{ pg-docs }}/logicaldecoding-explanation.html#LOGICALDECODING-REPLICATION-SLOTS) are created in the source database. The database objects are locked at this point. If some object is locked by another transaction, this results in a competing lock, which will terminate the transfer with an error. | ||
|
||
**Solution:** | ||
|
||
1. Get the `PID` of the process that competes for locks with the transfer: | ||
|
||
```sql | ||
/* Get PID of the transfer */ | ||
SELECT active_pid | ||
FROM pg_replication_slots | ||
WHERE slot_name = '<transfer ID>'; | ||
|
||
/* search the PID of the locking process */ | ||
SELECT pid, pg_blocking_pids(pid) as blocked_by | ||
FROM pg_stat_activity | ||
WHERE cardinality(pg_blocking_pids(pid)) > 0; | ||
``` | ||
|
||
```text | ||
pid | blocked_by | ||
-----------------+------------------- | ||
<transfer PID> | {<locking transaction PID>} | ||
(1 row) | ||
``` | ||
|
||
1. Look up the locking query: | ||
|
||
```sql | ||
SELECT query, usename | ||
FROM pg_stat_activity | ||
WHERE pid = <locking transaction PID>; | ||
``` | ||
|
||
1. (optional) Stop the transaction by the command: | ||
|
||
```sql | ||
SELECT pg_terminate_backend(<locking transaction PID>); | ||
``` | ||
|
||
1. [Reactivate the transfer](../../../../data-transfer/operations/transfer.md#activate). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
en/_includes/iam/roles/short-descriptions/vpc.gateways.editor.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[`vpc.gateways.editor`](../../../../iam/concepts/access-control/roles.md#vpc-gw-editor): Enables you to manage NAT gateways. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### {{ roles.k8s.admin }} {#k8s-admin} | ||
|
||
The `{{ roles.k8s.admin }}` role enables you to [create](../managed-kubernetes/operations/kubernetes-cluster/kubernetes-cluster-create.md), [delete](../managed-kubernetes/operations/kubernetes-cluster/kubernetes-cluster-delete.md), [edit](../managed-kubernetes/operations/kubernetes-cluster/kubernetes-cluster-update.md), stop, and start [{{ k8s }} clusters](../managed-kubernetes/concepts/index.md#kubernetes-cluster) and [node groups](../managed-kubernetes/concepts/index.md#node-group). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### {{ roles.k8s.cluster-api.cluster-admin }} {#k8s-clusters-api-cluster-admin} | ||
|
||
Users with the {{ iam-name }} `{{ roles.k8s.cluster-api.cluster-admin }}` role get the `yc:cluster-admin` group and `cluster-admin` role in {{ k8s }} RBAC. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### {{ roles.k8s.cluster-api.editor }} {#k8s-clusters-api-editor} | ||
|
||
Users with the {{ iam-name }} `{{ roles.k8s.cluster-api.editor }}` role get the `yc:edit` group and the `edit` role in {{ k8s }} RBAC for all [namespaces](../managed-kubernetes/concepts/index.md#namespace) in a [cluster](../managed-kubernetes/concepts/index.md#kubernetes-cluster). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### {{ roles.k8s.cluster-api.viewer }} {#k8s-clusters-api-viewer} | ||
|
||
Users with the {{ iam-name }} `{{ roles.k8s.cluster-api.viewer }}` role get the `yc:view` group and the `view` role in {{ k8s }} RBAC for all [namespaces](../managed-kubernetes/concepts/index.md#namespace) in a [cluster](../managed-kubernetes/concepts/index.md#kubernetes-cluster). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
### {{ roles.k8s.clusters.agent }} {#k8s-clusters-agent} | ||
|
||
`{{ roles.k8s.clusters.agent }}`: A special role for a [{{ k8s }} cluster](../managed-kubernetes/concepts/index.md#kubernetes-cluster)[service account](../iam/concepts/users/service-accounts.md). It enables you to create [node groups](../managed-kubernetes/concepts/index.md#node-group), disks, and internal load balancers. You can use previously created [{{ kms-full-name }} keys](../kms/concepts/key.md) to encrypt and decrypt secrets and connect previously created [security groups](../managed-kubernetes/operations/connect/security-groups.md). In combination with the `load-balancer.admin` role, it enables you to create a network load balancer with a [public IP address](../vpc/concepts/address.md#public-addresses). It includes the following roles: | ||
* `compute.admin` | ||
* `iam.serviceAccounts.user` | ||
* `kms.keys.encrypterDecrypter` | ||
* `load-balancer.privateAdmin` | ||
* `vpc.privateAdmin` |
Oops, something went wrong.