Skip to content

Commit

Permalink
Fix label selector in Using Source IP tutorial
Browse files Browse the repository at this point in the history
Before:
```sh
controlplane $ kubectl delete svc -l run=source-ip-app
No resources found
```
```sh
k get svc --show-labels
NAME           TYPE           CLUSTER-IP       EXTERNAL-IP   PORT(S)        AGE     LABELS
clusterip      ClusterIP      10.110.247.112   <none>        80/TCP         28m     app=source-ip-app
kubernetes     ClusterIP      10.96.0.1        <none>        443/TCP        49m     component=apiserver,provider=kubernetes
loadbalancer   LoadBalancer   10.111.123.206   <pending>     80:31111/TCP   9m59s   app=source-ip-app
nodeport       NodePort       10.108.129.31    <none>        80:32503/TCP   22m     app=source-ip-app
```
After:
```sh
controlplane $ kubectl delete svc -l app=source-ip-app
service "clusterip" deleted
service "loadbalancer" deleted
service "nodeport" deleted
```

Update source-ip.md

Update source-ip.md

Update source-ip.md
  • Loading branch information
joostas committed Apr 4, 2021
1 parent 7f2b282 commit fe9e5a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion content/en/docs/tutorials/services/source-ip.md
Expand Up @@ -425,7 +425,7 @@ the `service.spec.healthCheckNodePort` field on the Service.
Delete the Services:

```shell
kubectl delete svc -l run=source-ip-app
kubectl delete svc -l app=source-ip-app
```

Delete the Deployment, ReplicaSet and Pod:
Expand Down
2 changes: 1 addition & 1 deletion content/ja/docs/tutorials/services/source-ip.md
Expand Up @@ -399,7 +399,7 @@ client_address=198.51.100.79
Serviceを削除します。

```shell
kubectl delete svc -l run=source-ip-app
kubectl delete svc -l app=source-ip-app
```

Deployment、ReplicaSet、Podを削除します。
Expand Down
2 changes: 1 addition & 1 deletion content/ko/docs/tutorials/services/source-ip.md
Expand Up @@ -426,7 +426,7 @@ HTTP 헬스 체크를 생성하여
서비스를 삭제한다.

```shell
kubectl delete svc -l run=source-ip-app
kubectl delete svc -l app=source-ip-app
```

디플로이먼트, 레플리카셋 그리고 파드를 삭제한다.
Expand Down
2 changes: 1 addition & 1 deletion content/zh/docs/tutorials/services/source-ip.md
Expand Up @@ -387,7 +387,7 @@ __跨平台支持__
删除服务:

```console
$ kubectl delete svc -l run=source-ip-app
$ kubectl delete svc -l app=source-ip-app
```


Expand Down

0 comments on commit fe9e5a8

Please sign in to comment.