> For the complete documentation index, see [llms.txt](https://kawsing.gitbook.io/opensystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://kawsing.gitbook.io/opensystem/k8s/dui-wai-gong-kai-ying-yong.md).

# 對外公開應用

```
kubectl expose deployment/docker-python-flask-demo --type="NodePort" --port 3000
```

```
kubectl get services
```

```
NAME                       TYPE        CLUSTER-IP    EXTERNAL-IP   PORT(S)          AGE
docker-python-flask-demo   NodePort    10.97.78.59   <none>        3000:32172/TCP   89s
```

<div align="left"><img src="https://529150212-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-Lh81JtaIQ84bwQqz_Wh%2F-Lk8VHnNcmigeZbTF7Hs%2F-Lk8W3sKEo2TEMno0kQB%2Fimage.png?alt=media&amp;token=23125955-ceb2-4b29-afaf-db3f3c637b6a" alt=""></div>
