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