Skip to content

Instantly share code, notes, and snippets.

@adam-sandor
Created July 8, 2021 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adam-sandor/26a5f9450f67554b3edd7568b3412b82 to your computer and use it in GitHub Desktop.
Save adam-sandor/26a5f9450f67554b3edd7568b3412b82 to your computer and use it in GitHub Desktop.
Sample HTTP Request with Kubernetes metadata
POST https://employee-manager/employee
BASIC HTTP:
host: employee-manager
path: employees
port: 80
KUBERNETES:
source:
serviceaccount: payroll
namespace: payroll
ip: 10.3.4.6
destination:
ip: 10.3.5.5
serviceaccount: employees
namespace: employees
JWT (from Authorization header):
valid: true
sub: janedoe
name: Jane Doe
email: janedoe@styra.com
group: engineering
role: manager
BODY:
employee: {
firstName: John
lastName: Doe
group: hr
role: intern
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment