kubeproxy

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: Apache-2.0 Imports: 10 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectKubeProxyMode

func DetectKubeProxyMode(c *client.Client,
	configmapname string,
	containerName string,
	namespace string) (string, error)

DetectKubeProxyMode will detect kube-proxy mode

Args:

  • Pointer to a Client struct
  • configmapname
  • containerName
  • namespace

Returns:

string (ipvs or iptables) OR error type

func FindKubeProxyPod

func FindKubeProxyPod(c *client.Client,
	containerName string,
	namespace string) (string, error)

FindKubeProxyPod will return one of the daemonsets pods names for kubeproxy so we can connect to pod and execute commands or other actions

Args:

  • Pointer to a Client struct
  • containerName A substring of kube-proxy pod name
  • namespace

Returns:

    the first kube-proxy pod found from the daemonsets
	or error

func SaveCurrentFirewallState

func SaveCurrentFirewallState(c *client.Client,
	configmapname string,
	containerName string,
	namespace string) (string, error)

SaveCurrentFirewallState will save the current state from the kubeproxy pod

Args:

  • Pointer to a Client struct
  • podname A substring of kube-proxy pod name
  • namespace

Returns:

filename storing the firewall rules or error

Types

This section is empty.

Jump to

Keyboard shortcuts

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