pizza-apiserver

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

README

pizza-apiserver

An aggregated custom API server

You may need to run go mod vendor


CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o artifacts/simple-image/pizza-apiserver

docker build -t quay.io/mchirico/pizza-apiserver:v1 ./artifacts/simple-image
docker push quay.io/mchirico/pizza-apiserver:v1





# Do this twice, namespace may not be loaded.
k apply -f artifacts/deployment



cd artifacts/example/
ls topping* | xargs -n 1 kubectl create -f

kubectl apply -f pizza-margherita.yaml

# Now look at result 

kubectl get pizza -o yaml margherita



go build -a -o pizza-apiserver

./pizza-apiserver --etcd-servers localhost:2379 \
    --authentication-kubeconfig ~/.kube/config \
    --authorization-kubeconfig ~/.kube/config \
    --kubeconfig ~/.kube/config

Debugging

kubectl exec --stdin --tty pizza-apiserver-6886ff4688-wtp9k -c etcd  -- /bin/sh


kubectl exec --stdin --tty pizza-apiserver-6886ff4688-wtp9k -c apiserver  -- /bin/bash
yum update -y
yum install etcd -y
yum install -y procps
yum install -y net-tools
# If you need everything...
yum group install "Development Tools" -y


From here, take a look at debugging

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
apis/restaurant
Package api is the internal version of the API.
Package api is the internal version of the API.
apis/restaurant/v1alpha1
Package v1alpha1 is the v1alpha1 version of the API.
Package v1alpha1 is the v1alpha1 version of the API.
apis/restaurant/v1beta1
Package v1beta1 is the v1beta1 version of the API.
Package v1beta1 is the v1beta1 version of the API.
generated/clientset/internalversion
This package has the automatically generated clientset.
This package has the automatically generated clientset.
generated/clientset/internalversion/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
generated/clientset/internalversion/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
generated/clientset/internalversion/typed/restaurant/internalversion
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
generated/clientset/internalversion/typed/restaurant/internalversion/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
generated/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
generated/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
generated/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
generated/clientset/versioned/typed/restaurant/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
generated/clientset/versioned/typed/restaurant/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
generated/clientset/versioned/typed/restaurant/v1beta1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
generated/clientset/versioned/typed/restaurant/v1beta1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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