phcollignon / helm3 Goto Github PK
View Code? Open in Web Editor NEWRessources for "Packaging Applications with Helm for Kubernetes" @ Pluralsight (Helm version 3)
Ressources for "Packaging Applications with Helm for Kubernetes" @ Pluralsight (Helm version 3)
helm install guestbook_demo lab5_helm_chart_version1_final/chart/guestbook/Chart.yaml
Error: file '/Users/drorvt/Documents/helm_tar/helm3/lab5_helm_chart_version1_final/chart/guestbook/Chart.yaml' seems to be a YAML file, but expected a gzipped archive
why we get this error?
Hi,
I had to delete my linux VM in the middle and recreate it with higher specs and so I might have forgotten some important step, but it does not seem so.
Please, observe:
mark@minikube-vm:~/pluralsight-phcollignon-helm3/lab5_helm_chart_version1_begin/guestbook$ helm get manifest demo-guestbook
---
# Source: guestbook/templates/frontend-service.yaml
apiVersion: v1
kind: Service
metadata:
labels:
name: frontend
name: frontend
spec:
ports:
- protocol: "TCP"
port: 80
targetPort: 4200
selector:
app: frontend
---
# Source: guestbook/templates/frontend.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 1
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- image: phico/frontend:1.0
imagePullPolicy: Always
name: frontend
ports:
- name: frontend
containerPort: 4200
---
# Source: guestbook/templates/ingress.yaml
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: guestbook-ingress
spec:
rules:
- host: frontend.minikube.local
http:
paths:
- path: /
backend:
serviceName: frontend
servicePort: 80
- host: backend.minikube.local
http:
paths:
- path: /
backend:
serviceName: backend
servicePort: 80
mark@minikube-vm:~/pluralsight-phcollignon-helm3/lab5_helm_chart_version1_begin/guestbook$ ping frontend.minikube.local
PING frontend.minikube.local (192.168.99.100) 56(84) bytes of data.
64 bytes from frontend.minikube.local (192.168.99.100): icmp_seq=1 ttl=64 time=0.378 ms
64 bytes from frontend.minikube.local (192.168.99.100): icmp_seq=2 ttl=64 time=0.482 ms
64 bytes from frontend.minikube.local (192.168.99.100): icmp_seq=3 ttl=64 time=0.318 ms
^C
--- frontend.minikube.local ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2029ms
rtt min/avg/max/mdev = 0.318/0.392/0.482/0.071 ms
mark@minikube-vm:~/pluralsight-phcollignon-helm3/lab5_helm_chart_version1_begin/guestbook$ minikube ip
192.168.99.100
mark@minikube-vm:~/pluralsight-phcollignon-helm3/lab5_helm_chart_version1_begin/guestbook$ kubectl get pod -l app=frontend
NAME READY STATUS RESTARTS AGE
frontend-56577ccc6d-q7pc4 1/1 Running 0 23m
mark@minikube-vm:~/pluralsight-phcollignon-helm3/lab5_helm_chart_version1_begin/guestbook$
Yet when I navigate to frontend.minikube.local I get an error:
mark@minikube-vm:~/pluralsight-phcollignon-helm3/lab5_helm_chart_version1_begin/guestbook$ wget http://frontend.minikube.local
--2020-09-04 19:37:07-- http://frontend.minikube.local/
Resolving frontend.minikube.local (frontend.minikube.local)... 192.168.99.100
Connecting to frontend.minikube.local (frontend.minikube.local)|192.168.99.100|:80... failed: Connection refused.
What am I missing?
Thank you.
lab1_kubectl_version1\yaml> kubectl apply -f ingress.yaml
Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
I'm running Minikube 1.12 and Kubernetes 1.18, when I try to apply the first exercise with
kubectl apply -f frontend.yaml
it shows:
The Deployment "frontend" is invalid: spec.selector: Invalid value: v1.LabelSelector{MatchLabels:map[string]string{"app":"frontend"}, MatchExpressions:[]v1.LabelSelectorRequirement(nil)}: field is immutable
*It works with Docker Kubernetes.
When running e.g. lab6 on minikube with the ingress addon enabled, I get CORS errors when posting a comment.
I have mapped to the minikube ip in the hosts file to both frontend.minikube.local and backend.minikube.local, I can see the frontend with the DNS name but cannot post. What may I be missing here?
Thanks
Starting in version 1.19
, K8s dropped support for extenstions/v1beta1
Ingress and now, you must use networking.k8s.io/v1
but there are also some changes to fields + variables which are necessary to update the ingress.yaml. Do you have a version available which is compatible? I would prefer not to rollback my k8s version.
Error:
kubectl apply -f ../../lab1_kubectl_version1/yaml/ingress.yaml
error: unable to recognize "../../lab1_kubectl_version1/yaml/ingress.yaml": no matches for kind "Ingress" in version "extensions/v1beta1"
I think it's something like this now but it's not exactly correct:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: guestbook-ingress
spec:
rules:
- host: frontend.minikube.local
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: frontend
port:
number: 80
- host: backend.minikube.local
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: backend
port:
number: 80
Hi Philippe,
I am following your pluralsight course and tries to do lab 1.
However I cannot open http://frontend.minikube.local/, seems cannot hit the endpoint.
I am using Docker Desktop for Windows, seems it doesn't come with Ingress Controller. I then installed it through https://kubernetes.github.io/ingress-nginx/deploy/#bare-metal. Still doesn't work.
Is there something I am still missing? Can you please point me to the right direction?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.