Skip to content

HE-TEADAL-PROJECT/advocate-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advocate Demo Kubernetes Environment

The Kubernetes environment to use the Advocate Demo.

Prerequisites

  1. kind - https://kind.sigs.k8s.io/docs/user/quick-start/
  2. istioctl - https://istio.io/latest/docs/setup/getting-started/#download
  3. kubectl - https://kubernetes.io/docs/tasks/tools/install-kubectl/
  4. docker - https://docs.docker.com/get-docker/
  5. httpie - https://httpie.io/docs#installation

Run the demo

This is loosly based on the config of the TEADAL baseline, thus, unlike normally istio is exposed on port 80 and 443. On some docker installations this might cause problems, e.g., on osx you have to enable Settings>Advanced>Allow privileged port mappings.

OSX To use this on M1 macs you need to enable the rosetta option in docker desktop (Settings>Features in Development>Use Rosetta for x86/amd64 emulation on Apple Silicon).

  1. Start the demo
    ./start.sh
  1. Check if the example is running
http get http://localhost/httpbin/headers

You should get something like:

HTTP/1.1 200 OK
access-control-allow-credentials: true
access-control-allow-origin: *
content-type: application/json
date: Mon, 31 Jul 2023 16:09:44 GMT
server: istio-envoy
transfer-encoding: chunked
x-envoy-upstream-service-time: 10

{
    "headers": {
        "Accept": "*/*",
        "Accept-Encoding": "gzip, deflate",
        "Host": "localhost",
        "User-Agent": "HTTPie/3.2.2",
        "X-B3-Parentspanid": "33ee160474145ae1",
        "X-B3-Sampled": "0",
        "X-B3-Spanid": "b45ba9133fe404c8",
        "X-B3-Traceid": "90e489f02a1bc68b33ee160474145ae1",
        "X-Envoy-Attempt-Count": "1",
        "X-Envoy-Internal": "true",
        "X-Envoy-Original-Path": "/httpbin/headers",
        "X-Forwarded-Client-Cert": "By=spiffe://cluster.local/ns/default/sa/default;Hash=bafae24765ca74c0fa144e5243b34c92c83f4d9d088660ed1775d7f18909c39b;Subject=\"\";URI=spiffe://cluster.local/ns/istio-system/sa/istio-ingressgateway-service-account"
    }
}
  1. Optionally, you can run the Python script simulatedRequests.py to make some GET requests to the example

Cleanup

kind delete clusters advocate

Development

The repo contains the follwing folders:

  • demo: Contains the core demo componentes that should be build and deployed with the ./start.sh script.
  • infra: Contains the infrastructure components that are needed to run the demo, e.g., the kind cluster and the istio installation.

Advocate docker images

You can find the advocate related docker images in the registry of Advocate repository .

Both folder will autobuild dockerfiles and deploy componentes following the following convention:

 <folder-name>/
    Dockerfile -- will be build and added to the kind cluster as <folder-name>:latest
    auto-deployment.yaml -- will be deployed to the kind cluster

About

Advocate is a set of tools and apis to enable kubernetes based applications to verify data integrity and to anchor data in the TEADAL environment. This demo shows Advocate's capabilities.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors