Last active
October 30, 2020 17:38
-
-
Save wethinkagile/19c1e421c4fc9be337070bc996d2a0b8 to your computer and use it in GitHub Desktop.
mikrok8s ambassador installation 30/Oct/2020
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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