Skip to content

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.

License

Notifications You must be signed in to change notification settings

opencontrolplane/opencp-shim

Repository files navigation

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.

About

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.

Resources

License

Stars

Watchers

Forks

Packages