How to upgrade Zolando PostgreSQL operator using Helm? - postgresql

I've installed Zolando PostgreSQL Operator v1.8.1 in bare-metal K8S using helm,
helm repo add postgres-operator-charts https://opensource.zalando.com/postgres-operator/charts/postgres-operator
helm install postgres-operator postgres-operator-charts/postgres-operator --version 1.8.1
but I'm not sure how to properly upgrade it to v1.8.2?
There is a documentation but it's too high level for me: https://github.com/zalando/postgres-operator/blob/master/docs/administrator.md#upgrading-the-operator
Could somebody provide step-by-step command line how to upgrade operator using Helm or without Helm?

Related

Database installation in Kubernete using helm chart got an error no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"

Error: unable to build kubernetes objects from release manifest: unable to recognize "": no matches for kind "PodDisruptionBudget" in version "policy/v1beta1"
minikube version : v1.28.0
helm version: v3.5.4+g1b5edb6
OS: Ubuntu
I am trying to install milvus cluster database in kubernete using helm chart.
Search for the file poddisruptionbudget.yml who should likely be located in folder ../cp-zookeeper/templates
change
apiVersion: policy/v1beta1
to
apiVersion: policy/v1
It's possible that you need to update your helm repo, to get a version of the helm chart that has been updated to work with the latest kubernetes. E.g. if you are dealing with elasticsearch, you might do helm repo update elastic.

what version of software I need to deploy to get kubernetes 1.19.7

I am trying to setup a kubernetes cluster but apparently the nfs-client-provisioner has issues with the newer versions of kubernetes. Therefore I need to install the latest version of 1.19.
I am creating the kubernetes via kubeadm and I am using crio as the runtime. I am also running the whole thing on ubuntu 20.04. I know that I need to install version 1.19.7 of kubeadm, kubelet and kubectl but whatabout the cri-o?
As per official documentation from Kubernetes the CRI-O version needs to match your Kubernetes version.
https://v1-19.docs.kubernetes.io/docs/setup/production-environment/container-runtimes/#cri-o
So CRI-O 1.19 version should be compatible with the Kubernetes version you want to install.

helm search not listing packages but installing in GKE kubernetes cluster

I have installed helm on a GKE Cluster. Installation is fine
$ helm version
version.BuildInfo{Version:"v3.2.4", GitCommit:"0ad800ef43d3b826f31a5ad8dfbb4fe05d143688", GitTreeState:"clean", GoVersion:"go1.13.12"}
I am able to install MySQL/MariaDB using helm successfully using below command
helm install stable/mysql
helm install stable/mariadb
But when I try to search these packages, I could not find the package
$ helm search hub mysql
No results found
$ helm search hub mariadb
No results found
While listing publicly available charts by running helm search hub, it gives below output
$ helm search hub
NAME CHART VERSION APP VERSION DESCRIPTION
stable/hubot 1.0.1 3.3.2 Hubot chatbot for Slack
stable/eventrouter 0.3.0 0.3 A Helm chart for eventruter (https://github.com/heptiolab...
stable/mercure 4.0.1 0.10.0 The Mercure hub allows to push data updates using the Mer...
stable/oauth2-proxy 3.2.0 5.1.0 A reverse proxy that provides authentication with Google,...`
I think my understanding is wrong. Can somebody please explain why the package is not listed with the helm search command?
I have encounter similar issue.
As you are using Helm 3 I skip installation part. My solution was to add proper google repository:
$ helm repo add stable https://kubernetes-charts.storage.googleapis.com
"stable" has been added to your repositories
$ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "incubator" chart repository
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈
Output:
$ helm search hub mariadb
URL CHART VERSION APP VERSION DESCRIPTION
https://hub.helm.sh/charts/bitnami/mariadb-galera 4.0.0 10.5.4 MariaDB Galera is a multi-master database clust...
https://hub.helm.sh/charts/bitnami/mariadb-cluster 1.0.1 10.2.14 Chart to create a Highly available MariaDB cluster
https://hub.helm.sh/charts/bitnami/phpmyadmin 6.2.2 5.0.2 phpMyAdmin is an mysql administration frontend
https://hub.helm.sh/charts/bitnami/mariadb 7.6.1 10.3.23 Fast, reliable, scalable, and easy to use open-...
https://hub.helm.sh/charts/ibm-charts/ibm-galer... 1.1.0 Galera Cluster is a multi-master solution for M...
https://hub.helm.sh/charts/ibm-charts/ibm-maria... 1.1.2 MariaDB is developed as open source software an...
user#cloudshell:~ (k8s-tests-278413)$
$ helm search hub mysql
URL CHART VERSION APP VERSION DESCRIPTION
https://hub.helm.sh/charts/cetic/adminer 0.1.3 4.7.6 Adminer is a full-featured database management ...
https://hub.helm.sh/charts/t3n/cloudsql-proxy 2.0.0 1.16 Google Cloud SQL Proxy
https://hub.helm.sh/charts/t3n/mysql-backup 2.0.0
https://hub.helm.sh/charts/bitnami/mariadb-galera 4.0.0 10.5.4 MariaDB Galera is a multi-master database clust...
https://hub.helm.sh/charts/bitnami/mysql 6.14.4 8.0.20 Chart to create a Highly available MySQL cluster
https://hub.helm.sh/charts/bitnami/mariadb-cluster 1.0.1 10.2.14 Chart to create a Highly available MariaDB cluster
https://hub.helm.sh/charts/bitnami/phpmyadmin 6.2.2 5.0.2 phpMyAdmin is an mysql administration frontend
https://hub.helm.sh/charts/bitnami/mariadb 7.6.1 10.3.23 Fast, reliable, scalable, and easy to use open-...
https://hub.helm.sh/charts/softonic/mysql-backup 2.1.4 0.2.0 Take mysql backups from any mysql instance to A...
https://hub.helm.sh/charts/rimusz/gcloud-sqlproxy 0.19.12 1.16 Google Cloud SQL Proxy
https://hub.helm.sh/charts/kanister/kanister-mysql 0.31.0 5.7.14 MySQL w/ Kanister support based on stable/mysql
https://hub.helm.sh/charts/appscode/stash-mysql 8.0.14 8.0.14 stash-mysql - MySQL database backup and restore...
https://hub.helm.sh/charts/presslabs/mysql-cluster 0.2.0 1.0 A Helm chart for easy deployment of a MySQL clu...
https://hub.helm.sh/charts/presslabs/mysql-oper... 0.4.0 v0.4.0 A Helm chart for mysql operator
https://hub.helm.sh/charts/presslabs/orchestrator 0.1.7 3.0.14 A Helm chart for github's mysql orchestrator
https://hub.helm.sh/charts/incubator/mysqlha 2.0.0 5.7.13 MySQL cluster with a single master and zero or ...
https://hub.helm.sh/charts/wso2/mysql-am 3.1.0-2 5.7 A
...
Use helm hub to search for any chart such as nginx and you can use the command given there to install the chart. Please note
Not all charts are available in stable repo
You need to update local helm repo to be able to install the chart.
helm repo update
helm install stable/nginx-ingress

Could not install Istio demo profile. Error: Could not configure logs

I have installed Minikube on my laptop. I am trying to run the Istio. I have followed the instructions given here.
https://istio.io/docs/setup/getting-started/
My setup is as below.
Microsoft Windows 10 Pro
Minikube version 1.5.2
Kubernetes version 1.16.2
Istio version 1.4
When I run the command as given in the documentation
istioctl manifest apply --set profile=demo
It fails immediately giving below error.
Could not configure logs: couldn't open sink "/dev/null": open
/dev/null: The system cannot find the path specified.
Anybody has faced the issue? Thanks in advance for any pointers.
Try adding flag --logtostderr.
istioctl manifest apply --set profile=demo --logtostderr
I checked istio github and there is same issue reported 3 days ago.
As i could read there
The issue is windows specific,should be fixed in 1.4.1 release in about 2 weeks
For now i would suggest to use helm instead of istioctl, like #lain mentioned in his answer.
EDIT
There is workaround for istio 1.4.0 provided in github link above
Finally got my hands on a windows machine. Workaround for 1.4.0(folder from the Istio release archive):
istioctl manifest apply --set profile=demo --logtostderr --set installPackagePath=install/kubernetes/operator/charts

Can u share me an installation document specifically version 1.15 for kubeadmn

can anyone share me clear step installation specific to 1.15 for kubernettes admn?
I am new for Kubernetes and i didn't able to find for installation steps version specific for kubeadm if anyone can you share some link
Follow the link to install k8s cluster using kubeadm
https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/
you just need to include the kubernetes version parameter to install specific version as shown below.
kubeadm init --kubernetes-version=v1.15.0
The correct way to install Kubernetes cluster in version other then current is to install kubeadm, kubectl and kubelet in the version you want. This is because kubeadm will download the newest version of kubelet and kubectl as additional packages.
Which will lead to an error while doing kubeadm init --kubernetes-version=v1.15.0
[ERROR KubeletVersion]: the kubelet version is higher than the control plane version. This is not a supported version skew and may lead to a malfunctional cluster. Kubelet version: "1.16.2" Control plane version: "1.15.0"`
Correct way of installing not latest version of Kubernetes cluster is to install all packages with the same version which can be done for example using:
apt-get install kubeadm=1.15.0-00 kubelet=1.15.0-00 kubectl=1.15.0-00