hammerkit
  • About
  • Installation
  • Getting started
  • Build file
    • Environment Variables
    • References
    • Includes
  • Task
    • Dependencies
    • Needs
    • Caching
    • Container
    • Watching
    • Extending
  • Service
    • Container
    • Kubernetes
  • Labels
  • CLI
    • Init
    • ls
    • Execute
    • Store / Restore
    • Clean
    • Validate
    • Help
  • External Links
    • Docker Hub
    • Homebrew Repository
  • Release Blog
    • Release 1.4.0
    • Release 1.5.0
  • Contribution
    • Roadmap
    • Publishing
Powered by GitBook
On this page
  • Config
  • Context / Selector

Was this helpful?

  1. Service

Kubernetes

Kubernetes services can be used to access resources from kubernetes clusters in your tasks. Allowing to share resources on a remote machine or run tasks against test/staging/production environments.

Config

Hammerkit uses by default the standard kubernetes configuration in the $home/.kube/config file. The kubeconfig value allows the usage of another config file.

services:
  postgres:
    context: docker-desktop
    kubeconfig: ./kube-config.yaml

Context / Selector

The context specifies which cluster and user will be used to forward ports. The selector contains the resource type and name to forward from.

services:
  postgres:
    context: docker-desktop
    ports:
      - 5432:5432
    selector:
      type: deployment
      name: postgres

Possible selector types could be deployment, service or pod.

PreviousContainerNextLabels

Last updated 2 years ago

Was this helpful?