Skip to content

provide example using external-dns helm chart #20

Open
@not22day

Description

@not22day

Is your feature request related to a problem? Please describe.

at the moment the example is based on plain manifest

Describe the solution you'd like

for me the official external-dns helm chart looks flexible enough
to inject the stackit webhook via values
https://github.com/kubernetes-sigs/external-dns/blob/master/charts/external-dns/templates/deployment.yaml

Describe alternatives you've considered

Search

  • I did search for other open and closed issues before opening this.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Additional context

No response

Activity

not22day

not22day commented on Aug 20, 2024

@not22day
Author

some promising start..

provider:
    name: webhook
    webhook:
      image:
        repository: ghcr.io/stackitcloud/external-dns-stackit-webhook
        tag: v0.3.1
      args:
      - --project-id=xxx
      env:
      - name: AUTH_TOKEN
        valueFrom:
          secretKeyRef:
            name: external-dns-stackit-webhook
            key: auth-token
fjvela

fjvela commented on Dec 10, 2024

@fjvela

Hello @not22day !

Check the code:

  logLevel: info
  logFormat: text
  interval: 1m
  sources:
    - service
    - ingress
  policy: sync

  provider:
    name: webhook
    webhook:
      image:
        # -- (string) Image repository for the `webhook` container.
        repository: ghcr.io/stackitcloud/external-dns-stackit-webhook
        # -- (string) Image tag for the `webhook` container.
        tag: v0.3.2
        # -- Image pull policy for the `webhook` container.
        pullPolicy: IfNotPresent
      # -- [Environment variables](https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/) for the `webhook` container.
      env:
        - name: AUTH_TOKEN
          valueFrom:
            secretKeyRef:
              name: external-dns-stackit-webhook
              key: auth-token
        - name: PROJECT_ID
          valueFrom:
            secretKeyRef:
              name: external-dns-stackit-webhook
              key: project-id
      # -- Extra arguments to provide for the `webhook` container.
      # args: ["--log-level=debug", --api-port=8080, "--project-id=$PROJECT_ID"]
      # -- Extra [volume mounts](https://kubernetes.io/docs/concepts/storage/volumes/) for the `webhook` container.
      extraVolumeMounts: []
      # -- [Resources](https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/) for the `webhook` container.
      resources: {}
      # -- [Pod security context](https://kubernetes.io/docs/tasks/configure-pod-container/security-context/#set-the-security-context-for-a-container) for the `webhook` container.
      # @default -- See _values.yaml_
      securityContext:
        capabilities:
          drop:
            - ALL
        readOnlyRootFilesystem: true
        runAsNonRoot: true
        runAsUser: 65534
      # -- [Liveness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) configuration for the `external-dns` container.
      # @default -- See _values.yaml_
      livenessProbe:
        failureThreshold: 2
        httpGet:
          path: /healthz
          port: 8888
        initialDelaySeconds: 10
        periodSeconds: 10
        successThreshold: 1
        timeoutSeconds: 5
      # -- [Readiness probe](https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/) configuration for the `webhook` container.
      # @default -- See _values.yaml_
      readinessProbe:
        failureThreshold: 6
        httpGet:
          path: /healthz
          port: 8888
        initialDelaySeconds: 5
        periodSeconds: 10
        successThreshold: 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @fjvela@slm0n87@mgalm@PatrickKoss@not22day

      Issue actions

        provide example using external-dns helm chart · Issue #20 · stackitcloud/external-dns-stackit-webhook