kube-gateway-operator

command module
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

Go Report Card License

kube-gateway-operator

alt gopher network

kube-gateway-operator installs and operate kube-gateway, kube-gateway allow access k8s API using time limited access tokens, kube-gateway allow usage of one time access tokens to k8s resources.

Build and push images

export USERNAME=yaacov
IMG=quay.io/$USERNAME/kube-gateway-operator:v0.0.1 make podman-build
IMG=quay.io/$USERNAME/kube-gateway-operator:v0.0.1 make podman-push

Deploy

# Deploy the operator, RBAC roles and CRDs
export USERNAME=yaacov
IMG=quay.io/$USERNAME/kube-gateway-operator:v0.0.1 make deploy

# Deploy from an example deployment yaml
# Will use pre-defined images and permistions, users can also copy this file to local
# directory and edit the container image used.
oc create -f https://raw.githubusercontent.com/kubevirt-ui/kube-gateway-operator/main/deploy/kube-gateway-operator.yaml
# Remove deployment of the operator, RBAC roles and CRDs
export USERNAME=yaacov
IMG=quay.io/$USERNAME/kube-gateway-operator:v0.0.1 make undeploy

Create GateServer and GateToken examples

Example files: gateserver.yaml, gatetoken.yaml

# Use the kube-gateway namespace
oc create namespace kube-gateway

# create a sample gateway server
oc create -f config/samples/kubegateway_v1beta1_gateserver.yaml

# create a sample token request
oc create -f config/samples/kubegateway_v1beta1_gatetoken.yaml

# check the token
oc get gatetoken gatetoken-sample -o yaml

Building for local development

# Compile operator
make

# Install CRD on cluser for running loaclly
make install
# make uninstall

# Run locally
make run

(gopher network image - egonelbre/gophers)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1beta1
Package v1beta1 contains API Schema definitions for the kubegateway v1beta1 API group +kubebuilder:object:generate=true +groupName=kubegateway.kubevirt.io
Package v1beta1 contains API Schema definitions for the kubegateway v1beta1 API group +kubebuilder:object:generate=true +groupName=kubegateway.kubevirt.io

Jump to

Keyboard shortcuts

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