Commit a1627dde authored by Wim Bonthuis's avatar Wim Bonthuis

Update 201.md

parent 4fe5de7c
Pipeline #2017 passed with stages
in 14 seconds
......@@ -2,40 +2,50 @@
title: "201"
---
```
kubectl run -it --rm --restart=Never nslookup --image=busybox:1.28 nslookup kubernetes
```
```
kubectl run -it --rm --restart=Never wget --image alpine -- wget -qO- --timeout=2 http://echoserver:8080
nodeport vs clusterip (in minikube)
❯ kubectl expose pod echoserver --type NodePort
```
```
kubectl expose pod echoserver --type NodePort
service/echoserver exposed
~/projects/private/demos/devopsdays/2019/minik8s/static dod2019*
❯ kubectl get svc
kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
echoserver NodePort 10.98.106.115 <none> 8080:32386/TCP 3s
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 64m
```
```
kubectl edit svc echoserver
```
minikube service echoserver --url w/ clusterip
```
minikube config set
```
kubectl run example
```
ping 127.0.0.1.nip.io
```
demo nip/xip
```
minikube start -p profile
```
minikube profiles
minilube tunnel (?)
```
minikube logs
```
minikube -ho
```
eval $(minikube docker-env)
```
```
minikube ssh whoami
```
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment