open-vsx.org
open-vsx.org copied to clipboard
Added component label to some resources to disambiguate selectors
We are using the same labels set for both the server deployment and the elasticsearch statefulset. Kubectl CLI is confuses the matching pods when doing requests on deployments or statefulset as it probably uses the selector to find matching pods:
$ oc logs -n open-vsx-org deploy/open-vsx-org-production --tail=1
Found 7 pods, using pod/elasticsearch-production-es-default-2
This may also cause confuse the cluster, even though I have no proof of that.
This cannot be deployed as is as the labels of pod templates in deployments and statefulsets cannot be updated once created. I'll provide the steps shortly
The only way to deploy this change is to delete the old previous resources. Below the instruction for staging, needs to be replicated for prod. Note that this will introduce downtime:
- delete the elasticsearch cluster and the open-vsx deployment
$ oc delete -n open-vsx elasticsearch/elasticsearch-staging deployment/open-vsx-org-staging
- run a deployment job from laptop
./gen-deployment.sh staging <image> | kubectl apply -f -
- verify and profit.
@mbarbero What's next with this one?
It's up to the ops team to decide when then want to to that.
@amvanbaren Thoughts?