Coder Social home page Coder Social logo

phcollignon / helm3 Goto Github PK

View Code? Open in Web Editor NEW
256.0 256.0 502.0 1.37 MB

Ressources for "Packaging Applications with Helm for Kubernetes" @ Pluralsight (Helm version 3)

Dockerfile 3.04% Shell 2.35% JavaScript 16.05% TypeScript 57.22% HTML 17.44% CSS 2.86% Smarty 1.03%

helm3's People

Contributors

phcollignon avatar philippe-collignon avatar skip-sleep-play-games avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

helm3's Issues

seems to be a YAML file, but expected a gzipped archive

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?

.18

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.

CORS erros when running the samples

Hi @Philippe-Collignon

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

Bildschirmfoto 2020-12-12 um 17 51 12

Bildschirmfoto 2020-12-12 um 17 52 28

Lab1 Does Ingress Does Not Work With Later Versions of K8s

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

frontend.minikube.local does not start

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.