12 lines
417 B
Markdown
12 lines
417 B
Markdown
|
https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/
|
||
|
|
||
|
```kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0```
|
||
|
|
||
|
```kubectl create deployment web2 --image=gcr.io/google-samples/hello-app:2.0 --replicas=3```
|
||
|
|
||
|
```kubectl expose deployment web --type=NodePort --port=8080```
|
||
|
|
||
|
```kubectl expose deployment web2 --type=ClusterIP --port=8080```
|
||
|
|
||
|
```kubectl get service web```
|