Skip to content

Instantly share code, notes, and snippets.

---
apiVersion: v1
kind: Service
metadata:
name: python-api-stable
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
(master *) kubernetes $ kubectl get pods
NAME READY STATUS RESTARTS AGE
ambassador-6d9f98bc6c-5sppl 2/2 Running 0 19m
ambassador-6d9f98bc6c-nw6z9 2/2 Running 0 19m
ambassador-6d9f98bc6c-qr87m 2/2 Running 0 19m
productcatalogue-sdtlc 1/1 Running 0 22m
shopfront-gr794 1/1 Running 0 22m
stockmanager-bp7zq 1/1 Running 1 22m
(master *) kubernetes $ curl localhost/shopfront/
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
...
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
---
apiVersion: v1
kind: Service
metadata:
labels:
service: ambassador
name: ambassador
annotations:
getambassador.io/config: |
---
apiVersion: v1
kind: Service
metadata:
name: productpage
labels:
app: productpage
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
---
apiVersion: v1
kind: Service
metadata:
name: qotm
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v0
kind: Mapping
---
apiVersion: v1
kind: Service
metadata:
labels:
service: ambassador
name: ambassador
annotations:
getambassador.io/config: |
---