opencp-shim

command module
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

README

opencp-shim

OpenCP shim is a simple HTTP server that implements the Kubernetes API server interface. It is a shim that allows you to use the Kubernetes API server to implement your own API server.

How to run it in development mode

if this is for development, you can run it with the following steps:

  • Clone the repository
  • Run go build
  • Export SSL, this is to use the local SSL certificates
  • Run ./opencp-shim
Using Docker

Build using the following command:

docker build -t opencp-shim .

Run it using the following command:

docker run -d -p 4000:4000 -e SSL=true opencp-shim

How to run it in production mode

if this is for production, you dont need to build it, you can run it with the following steps:

docker run -d -p 4000:4000 opencp-shim

but you need a valid SSL certificate in front of it. You can use certbot to get a valid SSL certificate. or a valid SSL certificate from a CA. Also you can use nginx to proxy the traffic to the opencp-shim or caddy or any other reverse proxy.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
services

Jump to

Keyboard shortcuts

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