<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Kubernetes_Scratchpad</id>
	<title>Kubernetes Scratchpad - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://tech.uvoo.io/index.php?action=history&amp;feed=atom&amp;title=Kubernetes_Scratchpad"/>
	<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Kubernetes_Scratchpad&amp;action=history"/>
	<updated>2026-04-04T18:20:14Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.2</generator>
	<entry>
		<id>https://tech.uvoo.io/index.php?title=Kubernetes_Scratchpad&amp;diff=1163&amp;oldid=prev</id>
		<title>Busk: Created page with &quot;``` #!/usr/bin/env bash # set -e shopt -s expand_aliases alias kubectl='microk8s kubectl'  delete(){ kubectl delete deployment hello1 kubectl delete deployment hello2 kubectl...&quot;</title>
		<link rel="alternate" type="text/html" href="https://tech.uvoo.io/index.php?title=Kubernetes_Scratchpad&amp;diff=1163&amp;oldid=prev"/>
		<updated>2021-01-30T21:52:40Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;``` #!/usr/bin/env bash # set -e shopt -s expand_aliases alias kubectl=&amp;#039;microk8s kubectl&amp;#039;  delete(){ kubectl delete deployment hello1 kubectl delete deployment hello2 kubectl...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;```&lt;br /&gt;
#!/usr/bin/env bash&lt;br /&gt;
# set -e&lt;br /&gt;
shopt -s expand_aliases&lt;br /&gt;
alias kubectl='microk8s kubectl'&lt;br /&gt;
&lt;br /&gt;
delete(){&lt;br /&gt;
kubectl delete deployment hello1&lt;br /&gt;
kubectl delete deployment hello2&lt;br /&gt;
kubectl delete service hello1&lt;br /&gt;
kubectl delete service hello2&lt;br /&gt;
kubectl delete -f hello1-ingress.yml&lt;br /&gt;
kubectl delete -f hello2-ingress.yml&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
add(){&lt;br /&gt;
microk8s status&lt;br /&gt;
microk8s enable ingress&lt;br /&gt;
kubectl get pods -n kube-system&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
kubectl create deployment hello1 --image=gcr.io/google-samples/hello-app:1.0&lt;br /&gt;
kubectl create deployment hello2 --image=gcr.io/google-samples/hello-app:2.0&lt;br /&gt;
&lt;br /&gt;
kubectl expose deployment hello1 --type=NodePort --port=8080&lt;br /&gt;
kubectl expose deployment hello2 --type=NodePort --port=8080&lt;br /&gt;
&lt;br /&gt;
kubectl apply -f hello1-ingress.yml&lt;br /&gt;
kubectl apply -f hello2-ingress.yml&lt;br /&gt;
&lt;br /&gt;
kubectl get service hello1&lt;br /&gt;
kubectl get service hello2&lt;br /&gt;
&lt;br /&gt;
kubectl get service -o wided&lt;br /&gt;
&lt;br /&gt;
kubectl get ingress&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
web(){&lt;br /&gt;
# https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/&lt;br /&gt;
kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0&lt;br /&gt;
kubectl expose deployment web --type=NodePort --port=8080&lt;br /&gt;
kubectl create deployment web2 --image=gcr.io/google-samples/hello-app:2.0&lt;br /&gt;
kubectl expose deployment web2 --port=8080 --type=NodePort&lt;br /&gt;
# kubectl apply -f https://k8s.io/examples/service/networking/example-ingress.yaml&lt;br /&gt;
kubectl apply -f example-ingress.yml&lt;br /&gt;
curl -H &amp;quot;Host: hello-world.info&amp;quot; 127.0.0.1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
get(){&lt;br /&gt;
  kubectl get ingress&lt;br /&gt;
  kubectl get service&lt;br /&gt;
  kubectl get pods&lt;br /&gt;
  kubectl get nodes&lt;br /&gt;
  kubectl describe svc&lt;br /&gt;
  kubectl describe svc hello1&lt;br /&gt;
  curl -H &amp;quot;Host: hello1.uvoo.io&amp;quot; 127.0.0.1&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
# get&lt;br /&gt;
add&lt;br /&gt;
```&lt;/div&gt;</summary>
		<author><name>Busk</name></author>
	</entry>
</feed>