Create resources based on Kubernetes Service annotations #4115
NHClaessens
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Summary
While Pangolin/Newt provide support for auto-creating resources based on annotations on Docker containers, the same thing is not possible based on annotations on K8S Services
Motivation
When using GitOps, it would be nice to be able to define the ingress next to the rest of the manifests for each app
Similar to defining an Ingress resource, except now Pangolin acts as the gateway
Proposed Solution
Newt already handles the Docker side of things through the Docker socket event monitor
The K8S equivalent would be watching the kube API, though this would need credentials with the proper permissions
It would then keep track of annotation on Service objects
Some parsing of annotations to the same format Docker uses should be possible, so most of the functionality stays shared between the two
Alternatives Considered
Defining all apps in a single blueprint file would be an alternative, though that does deviate further from GitOps
Additional Context
No response
All reactions