# HTTP Provider in Kubernetes

**URL:** <https://community.traefik.io/t/http-provider-in-kubernetes/20220>\
**Category:** Traefik v2\
**Tags:** kubernetes-ingress\
**Created:** [October 20, 2023, 8:13am UTC](https://community.traefik.io/t/http-provider-in-kubernetes/20220 "2023-10-20T08:13:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![arthurkay](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/arthurkay/32/7211_2.png) [@arthurkay](https://community.traefik.io/u/arthurkay)\
**Post date:** [October 20, 2023, 8:13am UTC](https://community.traefik.io/t/http-provider-in-kubernetes/20220/1 "2023-10-20T08:13:10Z")

</div>

I am using Traefik as my ingress controller in Kubernetes. However, I want to use the Kubernetes ingress and the HTTP providers.

I tried to edit the default k3s Traefik pod to add the HTTP provider, but the configuration failed. I have attached the spec part of adding the HTTP provider below.

The endpoint `https://apps.example.com/api/traefik` has been tested with a Traefik proxy outside Kubernetes and works fine.

```yaml
spec:
  containers:
  - args:
    - --global.checknewversion
    - --global.sendanonymoususage
    - --entrypoints.metrics.address=:9100/tcp
    - --entrypoints.traefik.address=:9000/tcp
    - --entrypoints.web.address=:8000/tcp
    - --entrypoints.websecure.address=:8443/tcp
    - --api.dashboard=true
    - --ping=true
    - --metrics.prometheus=true
    - --metrics.prometheus.entrypoint=metrics
    - --providers.kubernetescrd
    - --providers.kubernetesingress
    - --providers.kubernetesingress.ingressendpoint.publishedservice=kube-system/traefik
    - --providers.http.endpoint=https://apps.example.com/api/traefik
    - --entrypoints.websecure.http.tls=true

```
