Skip to content

Instantly share code, notes, and snippets.

@wethinkagile
Last active October 30, 2020 17:38
Show Gist options
  • Save wethinkagile/19c1e421c4fc9be337070bc996d2a0b8 to your computer and use it in GitHub Desktop.
Save wethinkagile/19c1e421c4fc9be337070bc996d2a0b8 to your computer and use it in GitHub Desktop.
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