Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
mikrok8s ambassador installation 30/Oct/2020
# Update for official Cannonical Script:
# By stevek.pro 30/Oct/2020 - MIT Licence - Do as you like on your own risk.
---
kind: Pod
apiVersion: v1
metadata:
name: foo-app
labels:
app: foo
spec:
containers:
- name: foo-app
image: hashicorp/http-echo:0.2.3
args:
- "-text=foo"
---
kind: Service
apiVersion: v1
metadata:
name: foo-service
spec:
selector:
app: foo
ports:
# Default port used by the image
- port: 5678
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
annotations:
kubernetes.io/ingress.class: ambassador
spec:
rules:
- http:
paths:
- path: /foo
pathType: Prefix
backend:
service:
name: foo-service
port:
number: 5678
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment