gimlet

module
v0.0.0-...-56ebda5 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0

README

Examples

The server and client examples showcase federated service discovery using the service mesh federation - resource discovery protocol.

Usage

1. Generate root, server, and client certificates:

$ make certs

2. Create kind cluster:

Save following as kind.config.yaml:

kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
  extraPortMappings:
  - containerPort: 80
    hostPort: 80
    protocol: TCP
  - containerPort: 443
    hostPort: 443
    protocol: TCP
  - containerPort: 8001
    hostPort: 8001
    protocol: TCP

Create kind cluster:

$ kind create cluster --config=kind.config.yaml

3. Generate certs/secrets:

$ make certs
$ kubectl create secret generic gimletcerts --from-file=./rootCA.crt --from-file=server.crt --from-file=server.key -n gimlet  

4. Deploy server bits to cluster:

$ kubectl apply -f deployment
$ kubectl apply -f deployment/server

4. Start the client on local machine:

$ make start-client

5. Hit ^c (ctrl + c) to terminate the server/client.

Jump to

Keyboard shortcuts

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