• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cilium / cilium / 10272 / 1
39%
master: 39%

Build:
DEFAULT BRANCH: master
Ran 22 Aug 2019 03:07PM UTC
Files 438
Run time 29s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

22 Aug 2019 02:40PM UTC coverage: 44.063% (+0.007%) from 44.056%
10272.1

push

travis-ci-com

brb
helm: Allow to specify k8s api-server host and port via env vars

Currently, there are three ways how k8s api-server address can be
passed to cilium-agent:

1. Default: k8s passes it to cilium-agent Pod via KUBERNETES_SERVICE_{HOST,PORT}
   env vars. Usually, it's a ClusterIP which is translated to the master
   node IP address via iptables rules installed by kube-proxy.
2. Via the `--k8s-kubeconfig-path` cilium-agent param. This way seems to be
   unnecessary too complicated because the kubeconfig has to be distributed
   among all cilium nodes, and cilium-agent needs only IP addr + port of
   the api service, as the service account credentials are already
   mounted into cilium-agent Pod [1].
3. Via the `--k8s-api-server` cilium-agent param. Unfortunately, this way
   provides http-only access to the api-server, as pkg/k8s/config.go
   does not try to set certificate authority and token when
   `--k8s-api-server` is set.

This commit introduces a fourth way to pass the address to the api-server
by overriding KUBERNETES_SERVICE_{HOST,PORT} env vars with helm. This is
a temporary workaround needed for the kube-proxy free getting started
guide until the third way has been fixed.

[1]: https://kubernetes.io/docs/tasks/access-application-cluster/access-cluster/#accessing-the-api-from-a-pod

Signed-off-by: Martynas Pumputis <m@lambda.lt>

25438 of 57731 relevant lines covered (44.06%)

1181.86 hits per line

Source Files on job 10272.1
  • Tree
  • List 0
  • Changed 83
  • Source Changed 0
  • Coverage Changed 83
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 5839
  • Travis Job 10272.1
  • 24833f77 on github
  • Prev Job for on master (#10271.1)
  • Next Job for on master (#10280.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc