03 Oct 2024 02:32 PM - edited 03 Oct 2024 03:07 PM
Has anybody had any success with deploying containerized, auto-scalable private synthetic locations in "air-gapped" K8s namespaces where egress to the Dynatrace SaaS cloud is only possible via HTTP proxy?
I'm asking because it seems there are no instructions about how to configure a proxy with the metrics adapter template - only for the location template.
I'm referring to this documentation:
As per the generated metric adapter template the deployment "dynatrace-metrics-apiserver" obviously wants to communicate with the public API endpoint on SaaS configured via env var BASE_URL:
apiVersion: apps/v1
kind: Deployment
metadata:
...
spec:
...
template:
...
spec:
...
containers:
- name: dynatrace-metrics-apiserver
image: dynatrace/dynatrace-synthetic-adapter:latest
env:
- name: BASE_URL
value: "https://abcdef.live.dynatrace.com/e/abcdef"
imagePullPolicy: Always
args:
- --secure-port=6443
- --cert-dir=/tmp
ports:
- name: https
containerPort: 6443
volumeMounts:
- name: temp-vol
mountPath: /tmp
- name: dynametric
mountPath: /var/lib/dynatrace/secrets/dynametric
readOnly: true
...
...
On our k8s cluster this will not work as direct egress is not allowed.
Solved! Go to Solution.
03 Oct 2024 03:00 PM
I don't believe that it is currently possible to add proxy settings for the metric adapter. I'm checking into it
03 Oct 2024 03:15 PM - edited 03 Oct 2024 03:19 PM
Hi @HannahM
Thanks for looking into this - appreciated!
If a proxy config is not currently supported the other option would be to connect to an internal API endpoint on one of our ActiveGates that is reachable directly from the namespace, but that would require either allowing insecure TLS comms or the configuration of a custom CA in the trust store (since our AG's use a server cert that is signed by a private CA).
08 Oct 2024 12:43 PM
Hi @Enrico_F
have you checked customizing proxy configurations in Dynakube.yaml on the K8s cluster.
BR,
Peter.
08 Oct 2024 12:59 PM - edited 08 Oct 2024 01:01 PM
No, because
08 Oct 2024 01:37 PM
Hello @Enrico_F
You can check the attached configurations: https://docs.dynatrace.com/docs/shortlink/sgw-configure#synth_mod
Hoping it adds value.
BR,
Peter.
08 Oct 2024 02:01 PM - edited 08 Oct 2024 02:02 PM
Thanks. I'm already familiar with the ActivGate properties but IMO this is not really relevant here as my question is not specifically about the ActiveGate itself but rather about the synthetic (metric) adapter component that's required for auto-scaling containerized private locations on K8s.
08 Oct 2024 02:08 PM
Thanks @Enrico_F for feedback.
what about checking this section https://docs.dynatrace.com/docs/shortlink/sgw-proxy-authentication#advanced
Regards,
08 Oct 2024 02:48 PM
Already checked - none of that applies to the synthetic adapter component. But thanks anyway.
17 Oct 2024 10:28 AM - edited 17 Oct 2024 12:02 PM
FWIW: In the meantime this was acknowledged by support as something that got missed during initial design and will be addressed in sprint 305 (expected for late January 2025).
05 Nov 2024 09:29 AM
Some good news on this one, the fix has been backported to the 303 ActiveGate. So should be available in the next couple of weeks.
05 Nov 2024 09:57 AM
Thanks @HannahM for the good news 🗞😊