Webhook: create k8s resources selected by a headless service (DNS resolution expected) #2683
Unanswered
ProtossGP32
asked this question in
Q&A
Replies: 1 comment
-
So, I've been doing some additional tests:
This is the current representation of what I've accomplished so far (sorry for the diagram mess, can't do better with mermaid): graph BT
subgraph es-svc [Event Source service]
direction TB
EventSource(Event Source)
end
subgraph hs [Headless Service]
direction TB
PodA("Pod A")
PodB("Pod B")
end
CLI -- curl ... http://localhost:12000/example --> EventSource
EventSource --> Sensor
PodA <-- can reach --> PodB
Sensor -- creates --> PodA
Sensor -- creates --> PodB
PodA -- /example --> es-svc
PodB -- /example --> es-svc
Pros:
Cons:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone! I'm pretty new to the Argo Events and Workflow ecosystem but I think they could help me implement an experimental architecture I'm working on.
Brief description: I'd like to create an Argo Events architecture that spawns workloads, each one of them then selected by a headless service so I can ensure communication between these pods. Something along the lines of this diagram:
Also, Pod A and Pod B should be able to reach the Event Source to send it payloads.
Tested until now: I've followed the Argo Events Getting Started guide and already deployed a Webhook EventSource and a Source, and configured the triggers and endpoints so each time I do an HTTP request to an endpoint
http://localhost:12000/example
an argo-workflow template is created (k8s resource) and a pod is spawned. What I would like now is to make all these pods internally reachable via DNS using a headless service (no need for external communication, only inter-pod).I've tried assiging labels to the pods via
podMetadata
in the Argo Workflow template but the service with the appropriate selector doesn't seem to care about this. The only thing that I've achieved is to include the EventSource to the external headless service using theeventsource-name
label.Any thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions