Merge pull request #20303 from Nishikoh/fix-indent

Fix indent of the example yaml
This commit is contained in:
Kubernetes Prow Robot
2020-04-14 23:28:02 -07:00
committed by GitHub
@@ -79,20 +79,20 @@ To encrypt the data:
1. Create a new encryption configuration file using the appropriate properties for the `kms` provider: 1. Create a new encryption configuration file using the appropriate properties for the `kms` provider:
```yaml ```yaml
apiVersion: apiserver.config.k8s.io/v1 apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration kind: EncryptionConfiguration
resources: resources:
- resources: - resources:
- secrets - secrets
providers: providers:
- kms: - kms:
name: myKmsPlugin name: myKmsPlugin
endpoint: unix:///tmp/socketfile.sock endpoint: unix:///tmp/socketfile.sock
cachesize: 100 cachesize: 100
timeout: 3s timeout: 3s
- identity: {} - identity: {}
``` ```
2. Set the `--encryption-provider-config` flag on the kube-apiserver to point to the location of the configuration file. 2. Set the `--encryption-provider-config` flag on the kube-apiserver to point to the location of the configuration file.
3. Restart your API server. 3. Restart your API server.
@@ -135,22 +135,22 @@ To switch from a local encryption provider to the `kms` provider and re-encrypt
1. Add the `kms` provider as the first entry in the configuration file as shown in the following example. 1. Add the `kms` provider as the first entry in the configuration file as shown in the following example.
```yaml ```yaml
apiVersion: apiserver.config.k8s.io/v1 apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration kind: EncryptionConfiguration
resources: resources:
- resources: - resources:
- secrets - secrets
providers: providers:
- kms: - kms:
name : myKmsPlugin name : myKmsPlugin
endpoint: unix:///tmp/socketfile.sock endpoint: unix:///tmp/socketfile.sock
cachesize: 100 cachesize: 100
- aescbc: - aescbc:
keys: keys:
- name: key1 - name: key1
secret: <BASE 64 ENCODED SECRET> secret: <BASE 64 ENCODED SECRET>
``` ```
2. Restart all kube-apiserver processes. 2. Restart all kube-apiserver processes.
@@ -165,24 +165,22 @@ To disable encryption at rest:
1. Place the `identity` provider as the first entry in the configuration file: 1. Place the `identity` provider as the first entry in the configuration file:
```yaml ```yaml
apiVersion: apiserver.config.k8s.io/v1 apiVersion: apiserver.config.k8s.io/v1
kind: EncryptionConfiguration kind: EncryptionConfiguration
resources: resources:
- resources: - resources:
- secrets - secrets
providers: providers:
- identity: {} - identity: {}
- kms: - kms:
name : myKmsPlugin name : myKmsPlugin
endpoint: unix:///tmp/socketfile.sock endpoint: unix:///tmp/socketfile.sock
cachesize: 100 cachesize: 100
``` ```
2. Restart all kube-apiserver processes. 2. Restart all kube-apiserver processes.
3. Run the following command to force all secrets to be decrypted. 3. Run the following command to force all secrets to be decrypted.
``` ```
kubectl get secrets --all-namespaces -o json | kubectl replace -f - kubectl get secrets --all-namespaces -o json | kubectl replace -f -
``` ```
{{% /capture %}} {{% /capture %}}