Samples

Prerequesties

  • Basic knowledge working with curl
  • Basic knowledge working with grpcurl
  • example.com domain should be replaced with yours and a proper A DNS record should be added.

REST API Example

Simple service prints request headers.

The source code to the service can be found https://github.com/getinfra/sample-api

Argo CD repo for the app https://github.com/getinfra/samples-argocd/tree/main/http

curl -iS https://restapi.example.com/ping

gRPC Example

A simple grpc app that prints a name provided in request and accompanied headers.

The source code to the service can be found https://github.com/getinfra/sample-grpc/tree/main

Argo CD repo for the app https://github.com/getinfra/samples-argocd/tree/main/grpc

curl -o greet.proto https://raw.githubusercontent.com/getinfra/sample-grpc/main/Protos/greet.proto

grpcurl -plaintext -proto greet.proto -d '{ "name": "John" }' grpc.example.com:80 greet.Greeter/SayHello