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

provide example using external-dns helm chart #20

Open
2 tasks done
not22day opened this issue Aug 20, 2024 · 2 comments
Open
2 tasks done

provide example using external-dns helm chart #20

not22day opened this issue Aug 20, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@not22day
Copy link

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

@not22day not22day added the enhancement New feature or request label Aug 20, 2024
@not22day
Copy link
Author

not22day commented Aug 20, 2024

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
Copy link

fjvela commented Dec 10, 2024

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
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants