vagrant ssh server
Check if K3s is running
netstat -nlp|grep 6443
ps -a | grep 2999
vagrant ssh agent1
Check if K3 is running
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to
nginx.org.
Commercial support is available at
nginx.com.
Thank you for using nginx.
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to
nginx.org.
Commercial support is available at
nginx.com.
Thank you for using nginx.
If you see this page, the nginx web server is successfully installed and working. Further configuration is required.
For online documentation and support please refer to
nginx.org.
Commercial support is available at
nginx.com.
Thank you for using nginx.
http://127.0.0.1:31134/
http://127.0.0.1.nip.io:31134/
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/Xflp6n7UCn.png}}
== Ingress ==
https://github.com/Apress/Kubernetes-Native-Development/blob/main/snippets/chapter1/webserver-ingress.yaml
An Ingress can be compared to a reverse proxy that maps requests from a
single proxy server URL to internal URLs and is usually used whenever you
expose internal hosts to the outside world.
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/HLiczvyNkD.png}}
Unlike all the above examples, Ingress is actually NOT a type of service. Instead, it sits in front of multiple services and act as a “smart router” or entrypoint into your cluster.
Ingress is the most useful if you want to expose multiple services under the same IP address, and these services all use the same Layer7 protocol. Because Ingress distributes traffic by **domain**.
See https://medium.com/google-cloud/kubernetes-nodeport-vs-loadbalancer-vs-ingress-when-should-i-use-what-922f010849e0
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/GWE2CAYFgK.png}}
=== Persistent Value and claims ===
Persistent Value
https://github.com/Apress/Kubernetes-Native-Development/blob/main/snippets/chapter1/webserver-pv.yaml
Persistent Value Claim
https://github.com/Apress/Kubernetes-Native-Development/blob/main/snippets/chapter1/webserver-pvc.yaml
Modify **Deployment**, to mount the "Persistent Value Claim" into the container **"webserver"** as a volume:
https://github.com/Apress/Kubernetes-Native-Development/blob/main/snippets/chapter1/webserver-pvc-deployment.yaml
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/6Sz9k2lNzk.png}}
kubectl -n localnews create -f snippets/chapter4/crd/my-feed-analysis.yaml
kubectl get feedanalyses -n localnews
=== Operators ===
An operator runs your K8s application,
measuring and scaling up and down.
There are
- HELM based operators
- Ansible based operators, which generate ansible and apply
- GoLang Operators
Maturity of operators
{{https://s3.eu-central-1.amazonaws.com/alf-digital-wiki-pics/sharex/FhLnEF28TB.png}}
==== Yaml syntax ====
The precise format of the object spec is different for every Kubernetes object, and contains nested fields specific to that object.
The Kubernetes API Reference (https://kubernetes.io/docs/reference/kubernetes-api/) can help you find the spec format for all of the objects you can create using Kubernetes.
E.g.
* "Deployment": https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#create-create-a-deployment
* field "metadata " contains object "ObjectMeta" https://kubernetes.io/docs/reference/kubernetes-api/common-definitions/object-meta/#ObjectMeta
* field "spec" contains object "DeploymentSpec" https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/#DeploymentSpec