Closed Mahagon closed 2 months ago
please try to run with valid podSecurityContext
and securityContext
values
victoria-metrics-operator:
cleanupCRD: false
env:
- name: VM_ENABLESTRICTSECURITY
value: true
- name: VM_VMAGENTDEFAULT_CONFIGRELOADERMEMORY
value: 50Mi
- name: VM_USECUSTOMCONFIGRELOADER
value: true
securityContext:
seccompProfile:
type: "RuntimeDefault"
allowPrivilegeEscalation: false
capabilities:
drop:
- "ALL"
podSecurityContext:
runAsNonRoot: true
runAsUser: 65534
runAsGroup: 65534
fsGroup: 65534
operator:
enable_converter_ownership: true
admissionWebhooks:
certManager:
enabled: true
Removing fsGroup was an issue, but not the cause of this :)
But i was able to fix it anyways, it was missing a Network Policy so that the AKS control plane can reach the operator:
- apiVersion: crd.projectcalico.org/v1
kind: NetworkPolicy
metadata:
name: allow-control-plane-to-vmoperator-validating-webhook
spec:
selector: app.kubernetes.io/name == 'victoria-metrics-operator'
types:
- Ingress
ingress:
- action: Allow
source:
namespaceSelector: has(projectcalico.org/name) && projectcalico.org/name == 'kube-system'
selector: component == 'tunnel'
destination:
services:
name: victoria-metrics-k8s-stack-victoria-metrics-operator
namespace: victoria-metrics
So the mistake was on my side, thanks for helping. ❤️
👋
I am running into failing ValidatingAdmissionWebhooks since the victoria-metrics-k8s-stack update to 0.25.4 (issue persists in 0.25.5). It seems like the client is getting a HTTP, instead of a HTTPS response. Not sure if i misconfigured something, would be nice if someone could help me on this one :)
I already tried disabling the certmanager config entry, but i get the same result.
My helmfile for the Chart deployment:
I am getting the following error messages after the upgrade from 0.25.3 to 0.25.4 and also 0.25.5