Below is the yaml deployment file which I used to deploy a staging version of kube lego in addition to prod version, but it was failed to work. The reason was service selector was not picked up correctly and it ended up having selector as app: kube-lego rather than app: kube-lego-staging as specified in the yaml below.
Below is the yaml deployment file which I used to deploy a staging version of kube lego in addition to prod version, but it was failed to work. The reason was service selector was not picked up correctly and it ended up having selector as
app: kube-lego
rather thanapp: kube-lego-staging
as specified in the yaml below.Once I edited the service manually and set the correct selector, things start to work as expected.