delete unnecessary space and character (#14246)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
17ab877665
commit
769a5e71d4
+6
-6
@@ -262,12 +262,12 @@ For example:
|
|||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
```shell
|
```shell
|
||||||
export KUBECONFIG_SAVED=$KUBECONFIG
|
export KUBECONFIG_SAVED=$KUBECONFIG
|
||||||
```
|
```
|
||||||
### Windows PowerShell
|
### Windows PowerShell
|
||||||
```shell
|
```shell
|
||||||
$Env:KUBECONFIG_SAVED=$ENV:KUBECONFIG
|
$Env:KUBECONFIG_SAVED=$ENV:KUBECONFIG
|
||||||
```
|
```
|
||||||
The `KUBECONFIG` environment variable is a list of paths to configuration files. The list is
|
The `KUBECONFIG` environment variable is a list of paths to configuration files. The list is
|
||||||
colon-delimited for Linux and Mac, and semicolon-delimited for Windows. If you have
|
colon-delimited for Linux and Mac, and semicolon-delimited for Windows. If you have
|
||||||
a `KUBECONFIG` environment variable, familiarize yourself with the configuration files
|
a `KUBECONFIG` environment variable, familiarize yourself with the configuration files
|
||||||
@@ -277,7 +277,7 @@ Temporarily append two paths to your `KUBECONFIG` environment variable. For exam
|
|||||||
|
|
||||||
### Linux
|
### Linux
|
||||||
```shell
|
```shell
|
||||||
export KUBECONFIG=$KUBECONFIG:config-demo:config-demo-2
|
export KUBECONFIG=$KUBECONFIG:config-demo:config-demo-2
|
||||||
```
|
```
|
||||||
### Windows PowerShell
|
### Windows PowerShell
|
||||||
```shell
|
```shell
|
||||||
@@ -344,7 +344,7 @@ export KUBECONFIG=$KUBECONFIG:$HOME/.kube/config
|
|||||||
```
|
```
|
||||||
### Windows Powershell
|
### Windows Powershell
|
||||||
```shell
|
```shell
|
||||||
$Env:KUBECONFIG=($Env:KUBECONFIG;$HOME/.kube/config)
|
$Env:KUBECONFIG=($Env:KUBECONFIG;$HOME/.kube/config)
|
||||||
```
|
```
|
||||||
|
|
||||||
View configuration information merged from all the files that are now listed
|
View configuration information merged from all the files that are now listed
|
||||||
@@ -363,7 +363,7 @@ export KUBECONFIG=$KUBECONFIG_SAVED
|
|||||||
```
|
```
|
||||||
Windows PowerShell
|
Windows PowerShell
|
||||||
```shell
|
```shell
|
||||||
$Env:KUBECONFIG=$ENV:KUBECONFIG_SAVED
|
$Env:KUBECONFIG=$ENV:KUBECONFIG_SAVED
|
||||||
```
|
```
|
||||||
|
|
||||||
{{% /capture %}}
|
{{% /capture %}}
|
||||||
|
|||||||
@@ -135,24 +135,23 @@ The following file is an Ingress resource that sends traffic to your Service via
|
|||||||
|
|
||||||
1. Create `example-ingress.yaml` from the following file:
|
1. Create `example-ingress.yaml` from the following file:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
---
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
kind: Ingress
|
||||||
kind: Ingress
|
metadata:
|
||||||
metadata:
|
name: example-ingress
|
||||||
name: example-ingress
|
annotations:
|
||||||
annotations:
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
nginx.ingress.kubernetes.io/rewrite-target: /
|
spec:
|
||||||
spec:
|
rules:
|
||||||
rules:
|
- host: hello-world.info
|
||||||
- host: hello-world.info
|
http:
|
||||||
http:
|
paths:
|
||||||
paths:
|
- path: /*
|
||||||
- path: /*
|
backend:
|
||||||
backend:
|
serviceName: web
|
||||||
serviceName: web
|
servicePort: 8080
|
||||||
servicePort: 8080
|
```
|
||||||
```
|
|
||||||
|
|
||||||
1. Create the Ingress resource by running the following command:
|
1. Create the Ingress resource by running the following command:
|
||||||
|
|
||||||
@@ -232,12 +231,12 @@ The following file is an Ingress resource that sends traffic to your Service via
|
|||||||
|
|
||||||
1. Edit the existing `example-ingress.yaml` and add the following lines:
|
1. Edit the existing `example-ingress.yaml` and add the following lines:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
- path: /v2/*
|
- path: /v2/*
|
||||||
backend:
|
backend:
|
||||||
serviceName: web2
|
serviceName: web2
|
||||||
servicePort: 8080
|
servicePort: 8080
|
||||||
```
|
```
|
||||||
|
|
||||||
1. Apply the changes:
|
1. Apply the changes:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user