Closed david-streamlio closed 1 year ago
could you check if your k8s cluster has the following:
➜ samples git:(branch-0.14) ✗ kubectl get Validatingwebhookconfigurations -A
NAME WEBHOOKS AGE
function-mesh-validating-webhook-configuration 3 12m
➜ samples git:(branch-0.14) ✗ kubectl get Mutatingwebhookconfigurations -A
NAME WEBHOOKS AGE
function-mesh-mutating-webhook-configuration 3 12m
Also, if your deployment has webhook env set to true:
➜ samples git:(branch-0.14) ✗ kubectl get Deployments function-mesh-controller-manager -n function-mesh -oyaml
...
env:
- name: NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENABLE_WEBHOOKS
value: "true"
david@kubernetes:~/sn-function-mesh-operator$ kubectl get Validatingwebhookconfigurations -A | grep function
vfunction.kb.io-4gzcc 1 5h24m
function-mesh-validating-webhook-configuration 3 124m
david@kubernetes:~/sn-function-mesh-operator$ kubectl get Mutatingwebhookconfigurations -A | grep function
mfunction.kb.io-57gds 1 5h25m
function-mesh-mutating-webhook-configuration 3 125m
kubectl get Deployments function-mesh-controller-manager -n operators -oyaml
...
env:
- name: NAMESPACE
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.namespace
- name: ENABLE_WEBHOOKS
value: "true"
Attaching the full log of thefunction-mesh-controller-manager- pod operator-log.txt
We debugged offline, there's a conflicting FM controller installed by OLM hijacking the request. After the OLM installed operator is cleaned, the operator work as normal.
Environment:
OS: Ubuntu 22.04 K8s: 1.25.11 Kubernetes Distro: microk8s Function Mesh: v0.14.0
Behavior
The function-mesh-controller-manager-service keeps crashing and getting reassigned a new IP address
Steps to reproduce
Install the Function Mesh Operator using the documentation starting with the cert-manager, i.e.,
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --version v1.8.0 --set installCRDs=true
Then install the function mesh operator with helm, i.e.,
helm install function-mesh function-mesh/function-mesh-operator --namespace operators --set installCRDs=true
Check the IP of the
function-mesh-controller-manager-service
, and observe it changing constantly.Impact
This makes it impossible to deploy anything to the function-mesh using
kubectl apply
because the IP address keeps changing. If you run the commandkubectl apply -f compute_v1alpha1_functionmesh.yaml -n operators
the pods will never get created and you can see the following error in the logs of thefunction-mesh-controller-manager-
pod