Skip to content
Snippets Groups Projects
Verified Commit 62398b5e authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(dnsproxy): Use GOMAXPROCS and GOMEMLIMIT from Kubernetes resources

This patch implements some Go best practices for resource management.

References:
https://blog.howardjohn.info/posts/gomaxprocs/
parent be7d87c3
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,15 @@ spec: ...@@ -31,6 +31,15 @@ spec:
- --tls-port=853 - --tls-port=853
- --tls-crt=/etc/pki/dnsproxy/tls.crt - --tls-crt=/etc/pki/dnsproxy/tls.crt
- --tls-key=/etc/pki/dnsproxy/tls.key - --tls-key=/etc/pki/dnsproxy/tls.key
env:
- name: GOMEMLIMIT
valueFrom:
resourceFieldRef:
resource: limits.memory
- name: GOMAXPROCS
valueFrom:
resourceFieldRef:
resource: limits.cpu
ports: ports:
- containerPort: 53 - containerPort: 53
protocol: TCP protocol: TCP
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment