Skip to main content

Integrate Consul and Kubernetes

Project description

Status

CLI tool that integrates Consul and Kubernetes.

Command: write-ingresses

This command will query Kubernetes ingress resources for details to use to write a Consul service configuration file.

This is useful on Kubernetes workers that are running ingress controllers or other servers that might be proxying into ingress controllers, allowing discovery of services exposed by Kubernetes.

consulk8s write-ingresses -s /etc/consul.d/k8s_services.json

See consulk8s --help and consulk8s write-ingresses --help for more details.

Annotations on Ingress objects:

  • consulk8s/service - Name of Consul service to create for Ingress.

  • consulk8s/address - Address/IP to announce in Consul service. Defaults to Ingress loadBalancer IP.

  • consulk8s/port - Port to announce in Consul service. Defaults to 80.

  • consuk8s/check_host - Host header to set in Consul health checks. Uses first hostname found in Ingress if none specified.

  • consulk8s/check_timeout - Timeout for Consul health check. Defaults to 2s.

  • consulk8s/check_path - Path segment of URL to make HTTP health check request. Defaults to ‘/’.

  • consulk8s/tls_skip_verify - Skip TLS verification. Consul defaults to false.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

consulk8s-0.4.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file consulk8s-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: consulk8s-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.9.1 pkginfo/1.4.1 requests/2.13.0 setuptools/34.3.2 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.13

File hashes

Hashes for consulk8s-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9f4658d4771a5720685344e5d10ac67889a4e07ac36051a5b436bf15f6e7339
MD5 50f3e8d0f7409aec5dc1ae1ce782f01d
BLAKE2b-256 bd285b50f9d2282f705fc2147f97c4e22e00af054f0c91fed6ebe204d4c620f5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page