Code Monkey home page Code Monkey logo

chapters's People

Contributors

flavono123 avatar jdob avatar joshix 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

chapters's Issues

Set the database port in the backend

The environment variable MYSQL_SERVICE_PORT has the value tcp:<ip>:3306 so the init script crashes when the app starts.
As a workaround, setting the environment variable fixes the problem.

Use Ingress instead of Service nodeport

ch05 uses deployment yaml files to deploy the sample application. To enable ingress, the files expose services as Nodeport.

This makes it quite difficult to reach the service in a multi-node OCP cluster. You have to:

  1. Check where did the frontend pod get deployed (which node)
  2. Check the IP address of the node
  3. enable access to the port on the node
  4. GET that particular ip:port

The Ingress resource makes this much easier by adding a resolvable hostname. Ingress should work on both minikube and codeready containers, with the added benefit of working on multi-node clusters.

etcd-operator-deployment fails on minikube v1.33.1 (kubectl v1.30.0) on macOS Sonoma 14.5

Hello,

I'm following the tutorial on chapter 3 from this excellent book.

While creating the etcd-operator deployment, I got the following error with the associated image:

5s          Normal    Pulling             pod/etcd-operator-6dbbb9565d-htpwq    Pulling image "quay.io/coreos/etcd-operator:v0.9.4"
19s         Warning   Failed              pod/etcd-operator-6dbbb9565d-htpwq    Failed to pull image "quay.io/coreos/etcd-operator:v0.9.4": [DEPRECATION NOTICE] Docker Image Format v1 and Docker Image manifest version 2, schema 1 support is disabled by default and will be removed in an upcoming release. Suggest the author of quay.io/coreos/etcd-operator:v0.9.4 to upgrade the image to the OCI Format or Docker Image manifest v2, schema 2. More information at https://docs.docker.com/go/deprecated-image-specs/
19s         Warning   Failed              pod/etcd-operator-6dbbb9565d-htpwq    Error: ErrImagePull
19s         Normal    BackOff             pod/etcd-operator-6dbbb9565d-htpwq    Back-off pulling image "quay.io/coreos/etcd-operator:v0.9.4"
19s         Warning   Failed              pod/etcd-operator-6dbbb9565d-htpwq    Error: ImagePullBackOff

Any advice on this?

Thanks in advance.

Regards,

Fred Fadda

Error to create an Etcdcluster

Create Etcdcluster in this branch, to fix the #10 issue, check-dns the init container of the etcd intance pod is fail:

$ k create -f etcd-operator-deployment.yaml

$ k logs -f example-etcd-cluster-9cwsm2n8g7 check-dns
nslookup: can't resolve 'example-etcd-cluster-9cwsm2n8g7.example-etcd-cluster.default.svc'
^VServer:    10.96.0.10
Address 1: 10.96.0.10 kube-dns.kube-system.svc.cluster.local

(...repeating...)

It seems querying to pod(itself?) but like <pod-name>.<service-name>.<ns>.svc(?).
The rule of Pod DNS is pod-ip-address.my-namespace.pod.cluster-domain.example or pod-ip-address.service-name.my-namespace.svc.cluster-domain.example

Error creating a CRD

Hello!

trying to run example in page #14 of the book, executed the command

$ kubectl create -f etcd-operator-crd.yaml

and got the error:

error: unable to recognize "etcd-operator-crd.yaml": no matches for kind "CustomResourceDefinition" in version "apiextensions.k8s.io/v1beta1"

in kubernetes 1.22 "apiextensions.k8s.io/v1beta1" version was removed

https://kubernetes.io/blog/2021/07/14/upcoming-changes-in-kubernetes-1-22/#:~:text=The%20beta%20CustomResourceDefinition%20API%20(apiextensions.k8s.io/v1beta1)

tried to use kubectl convert to convert the manifest to a new version but also getting an error

$ kubectl convert -f etcd-operator-crd.yaml --output-version apiextensions.k8s.io/v1
error: unable to decode "etcd-operator-crd.yaml": no kind "CustomResourceDefinition" is registered for version "apiextensions.k8s.io/v1beta1" in scheme "pkg/api/legacyscheme/scheme.go:30"

any ideas? how to create the CRD in this cluster ?

this is my env:

macOS Monterrey
Version 12.3.1

$ oc version
Client Version: openshift-clients-4.5.0-202006231303.p0-21-g297a4ac42
Server Version: 4.10.9
Kubernetes Version: v1.23.5+9ce5071
$ oc whoami  
kubeadmin

thanks

Incorrect operator-sdk command

Chapter-6: Adapter Operators | Running the Helm Operator

Command in the book

$ operator-sdk up local --watches-file ./local-watches.yaml

Updated Command

$ operator-sdk run --local --watches-file ./local-watches.yaml

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.