Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidecar not injected #25

Open
vbottu opened this issue Apr 13, 2021 · 0 comments
Open

Sidecar not injected #25

vbottu opened this issue Apr 13, 2021 · 0 comments

Comments

@vbottu
Copy link

vbottu commented Apr 13, 2021

Hi,
I have tried this side car injector using the helm chart provided and the installation was successful and I don't see any errors in the sidecarinjector pod. Below are the sidecarconfig and mutation config used

apiVersion:` v1
kind: ConfigMap
metadata:
  name: {{ .Values.appname }}-webhook-configmap
  namespace: {{ .Values.namespace }}
data:
  sidecarconfig.yaml: |
    containers: 
    - name: test
      image: nginx
      imagePullPolicy: IfNotPresent
      resources:
        limits:
          memory: 512Mi
        requests:
          cpu: 250m
          memory: 256Mi
      volumeMounts:
      - mountPath: /etc
        name: nginx-config-volume
    volumes:
    - configMap:
        defaultMode: 420
        name: nginx-config
      name: fluentd-config-volume
  mutationconfig.yaml: |
    mutationConfigs: 
    - name: "mutation-config-1"
    annotationNamespace: "nginx-sidecar"
    annotationTrigger: "inject"
    containers: ["test"]

I have used the annotation nginx-sidecar/inject: enabled on my pod and I don't see any sidecar injected into my deployment.

Kubernetes Version: 1.16.15

Admission controller is enabled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant