Bash script to print on your terminal examples of basic Kubernetes YAMLs
Place kubehow.sh
in your bash scripts folder and create an alias for kubehow
so you can run the script by simply writing kubehow
.
Example
kubehow ingress
Output:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: minimal-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx-example
rules:
- http:
paths:
- path: /testpath
pathType: Prefix
backend:
service:
name: test
port:
number: 80
Run kubehow -h
to get the supported k8s artifacts.