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

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

Related

How to upgrade Zolando PostgreSQL operator using Helm?

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?

minikube --kubernetes-version --> Which version are supported?

I know that you can start minikube with a different K8s version with --kubernetes-version.
But how can I let minikube list all versions which it supports?
I had a look at the command reference of start, but could not find a way up to now.
In my case I would like to know which one is the latest v1.17.X version which is supported.
On the github release page I found that v1.17.12 is today the latest version in the 17.x series. But it would be nice, if I minikube or kubectl could tell me this.
#Esteban Garcia is right but I would like to expand on this topic a bit more with the help of the official documentation:
By default, minikube installs the latest stable version of Kubernetes
that was available at the time of the minikube release. You may select
a different Kubernetes release by using the --kubernetes-version
flag, for example:
minikube start --kubernetes-version=v1.11.10
minikube follows the Kubernetes Version and Version Skew Support
Policy, so we guarantee support for the latest build for the last
3 minor Kubernetes releases. When practical, minikube aims to support
older releases as well so that users can emulate legacy environments.
For up to date information on supported versions, see
OldestKubernetesVersion and NewestKubernetesVersion in
constants.go.
The following command may be helpful:
minikube config defaults kubernetes-version

How to upgrade istio 1.4.3 to latest with zero downtime

I am newly hired engineer who started working with istio recently. My application is currently running on istio 1.4.3 and having issues when i tried to upgrade to latest using istioctl upgrade.
Below are the steps i tried
1) Verified the versions using istioctl version and saw that control plane and data plane are running on 1.4.3 whereas client version is 1.5.1 (the version i planned to upgrade).
2) Tried istioctl upgrade and seen a message “cannot upgrade because of mismatch of versions in istio components”.
3) As it was my dev environment, i decided to reinstall using istioctl manifest apply --profile default
4) Above step cost me a lot of time, because i lost all the settings related to ingress gateway connected to AWS ALB, instead ingress controller created a classic load balancer which is not part of our previous set-up.
5) I also lost setting related to prometheus, grafana, kiali.
6) Now i am planning upgrade my prod without messing the current settings, please suggest a correct way to upgrade istio to latest version with zero downtime.
what is the best way to do this upgrade, can you point out any link to documentation apart from what is mentioned in istio website ? Help is much appreciated
can you point out any link to documentation apart from what is mentioned in istio website
https://istio.io has the most comprehensive information on the topic.
There are some prerequisites for the Istio upgrade as well.
- Istio version 1.4.4 or higher is installed.
- Your Istio installation was installed using istioctl.
It looks like your Istio version is a tiny step below minimum supported one :)
what is the best way to do this upgrade,
Usually it is recommended to go 1.4 --> 1.5 and only then 1.5 --> 1.6.
I have found the following document that describes an "experimental feature, which is intended for evaluation purposes only".
But the minimal version for it is 1.3.3 or higher, which might do the trick for you.
I hope that helps.

How to update kubernetes-dashboard with kubespray

I have no idea how to update my kubernetes-dashboard, its currently version 1.10.2 but i need to update it to Beta 2.0 v8. I'm fairly new to kubernetes, does anyone know how to update? I used kubespray to set up the clusters
You can find all the information in the repository.
Pay attention to compatibility, version v2.0.0-beta8 only works with kubernetes > 1.16
I had issues in just moving towards a 2.x.x release as KUbespray creates ressources templated from kubernetes apps role which does not fully match anymore. We disabled the dashboard install in kubespray and just installed in our ansible rollout by the official docs which is fine. Same for helm 3 btw.

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