kubernetes-operators-book / chapters Goto Github PK
View Code? Open in Web Editor NEWSource code for the examples in "Kubernetes Operators" by Jason Dobies and Joshua Wood, O'Reilly, 2020
Source code for the examples in "Kubernetes Operators" by Jason Dobies and Joshua Wood, O'Reilly, 2020
go.mod
file is missing in ch07 which makes provided operator undeployable.
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.
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:
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.
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
upon running oc create -f etcd-cluster-cr.yaml the example-etcd-cluster-* pods are not created
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
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
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
$ operator-sdk up local --watches-file ./local-watches.yaml
$ operator-sdk run --local --watches-file ./local-watches.yaml
what would be the license of this repository?
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.