deploy

package
v0.3.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Overview

Package deploy offers helpers for deploying applications in a cluster

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExposeApp

func ExposeApp(
	k8s kubernetes.Kubernetes,
	namespace string,
	pod corev1.Pod,
	replicas int,
	svc corev1.Service,
	port intstr.IntOrString,
	timeout time.Duration,
) error

ExposeApp deploys a number of replicas of a pod in a namespace and exposes them as a service in a cluster The ingress routes request that specify the service's name as host to this service.

func RunPod

func RunPod(k8s kubernetes.Kubernetes, ns string, pod corev1.Pod, timeout time.Duration) error

RunPod creates a pod and waits it for be running

func RunPodSet added in v0.3.10

func RunPodSet(k8s kubernetes.Kubernetes, ns string, pod corev1.Pod, replicas int, timeout time.Duration) error

RunPodSet runs a set of replicas of an Pod.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL