Proxy

module
v0.0.0-...-f0dd218 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: MIT

README

Proxy information

Prequesits

Since the proxy Interacts with the kubernetes api of a cluster, you need to have one up and running (like minikube).

Building

To be able to build the proxy docker image, you have to supply a kubernetes config file with all the required authentication files to be able to access the api. The config file needs to be stored in Proxy/.kube/config as well as edited to reflect the destination of the certificates and keys. (Should be /.kube/<filename> )

The following is an excerpt from my modified minikube config:

apiVersion: v1
clusters:
  - cluster:
      certificate-authority: /.kube/ca.crt
---
contexts:
  - context:
      cluster: minikube
---
users:
  - name: minikube
    user:
      client-certificate: /.kube/client.crt
      client-key: /.kube/client.key

Running

To run the proxy with access to the host network stack you need to use:

docker run --network host amos2023ss04-kubernetes-inventory-taker-proxy:latest

Directories

Path Synopsis
cmd
internal
cluster
Package cluster provides abstraction from kubernetes API.
Package cluster provides abstraction from kubernetes API.
config
Package config handles proxy configuration and command line flag parsing.
Package config handles proxy configuration and command line flag parsing.
database/model
Package model contains all the bun models for the database.
Package model contains all the bun models for the database.

Jump to

Keyboard shortcuts

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