parent
6942806f88
commit
97d992923f
@ -0,0 +1,24 @@
|
||||
kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: apple-app
|
||||
labels:
|
||||
app: apple
|
||||
spec:
|
||||
containers:
|
||||
- name: apple-app
|
||||
image: hashicorp/http-echo
|
||||
args:
|
||||
- "-text=apple"
|
||||
|
||||
---
|
||||
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: apple-service
|
||||
spec:
|
||||
selector:
|
||||
app: apple
|
||||
ports:
|
||||
- port: 5678 # Default port for image
|
@ -0,0 +1,24 @@
|
||||
kind: Pod
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: banana-app
|
||||
labels:
|
||||
app: banana
|
||||
spec:
|
||||
containers:
|
||||
- name: banana-app
|
||||
image: hashicorp/http-echo
|
||||
args:
|
||||
- "-text=banana"
|
||||
|
||||
---
|
||||
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: banana-service
|
||||
spec:
|
||||
selector:
|
||||
app: banana
|
||||
ports:
|
||||
- port: 5678 # Default port for image
|
@ -0,0 +1,18 @@
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: example-ingress
|
||||
annotations:
|
||||
ingress.kubernetes.io/rewrite-target: /
|
||||
spec:
|
||||
rules:
|
||||
- http:
|
||||
paths:
|
||||
- path: /apple
|
||||
backend:
|
||||
serviceName: apple-service
|
||||
servicePort: 5678
|
||||
- path: /banana
|
||||
backend:
|
||||
serviceName: banana-service
|
||||
servicePort: 5678
|
Loading…
Reference in new issue