Re:Show HN: Gitkube – Deploy to Kubernetes Using Git Push
by praseodym on Tuesday March 13, 2018 @11:10AM
(#16576711)
Our Kubernetes API server is only reachable from the internal network, which complicates things. Also, setting up Kubernetes RBAC to allow Travis CI to do a kubectl set-image isn’t trivial either.
The best alternative would be to have Travis CI SSH into a box with kubectl. In any case it’s bit more complicated than the setup with Keel we currently have.
Re:Show HN: Gitkube – Deploy to Kubernetes Using Git Push
by ecthiender on Tuesday March 13, 2018 @11:44AM
(#16577058)
> Also, setting up Kubernetes RBAC to allow Travis CI to do a kubectl set-image isn’t trivial either.
Wouldn't setting up Keel on a Kubernetes cluster be the same effort (permissions, RBAC etc.)?
Re:Show HN: Gitkube – Deploy to Kubernetes Using Git Push
by praseodym on Tuesday March 13, 2018 @02:54PM
(#16578746)
Keel has permissions to update all deployments in our cluster. Because it runs within the cluster instead of outside (like Travis CI), and the only interaction with Keel is through webhooks, there is no need for finegrained RBAC.
The webhooks only tell Keel that a new image is available, they cannot modify other parts of the Kubernetes deployment directly.
Re:Show HN: Gitkube – Deploy to Kubernetes Using Git Push
by tirumaraiselvan on Tuesday March 13, 2018 @12:02PM
(#16577199)
On that note, Gitkube supports RBAC as the Remote objects are namespaced. This means two things:
1) Remotes are isolated - have different authorizations for say dev and staging remotes
2) Deployments are isolated - A Remote can only deploy apps in its own namespace.
Re:Show HN: Gitkube – Deploy to Kubernetes Using Git Push
by hashfyre on Wednesday March 14, 2018 @05:16AM
(#16583375)
We are doing the exact same thing with Drone CI, however RBAC on the cluster is needed.
RBAC isn't too complicated though:
- get on specific app namespaces
- get, list, watch, patch, update on deployments
Just curious, why not have Travis CI do a kubectl set-image to rollout after pushing the docker image?