2022-06-15 15:55:05 +00:00
|
|
|
apiVersion: networking.k8s.io/v1
|
2022-03-18 20:03:45 +00:00
|
|
|
kind: Ingress
|
|
|
|
metadata:
|
2022-06-15 15:55:05 +00:00
|
|
|
name: test-ingress
|
2022-03-18 20:03:45 +00:00
|
|
|
spec:
|
2022-06-15 15:55:05 +00:00
|
|
|
rules:
|
|
|
|
- host: foo1.bar.com
|
|
|
|
http:
|
|
|
|
paths:
|
|
|
|
- backend:
|
|
|
|
service:
|
|
|
|
name: nginx-ingress-svc
|
|
|
|
port:
|
|
|
|
number: 80
|
|
|
|
path: /
|
|
|
|
pathType: ImplementationSpecific
|
2022-03-18 20:03:45 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: Service
|
|
|
|
metadata:
|
2022-06-15 15:55:05 +00:00
|
|
|
name: nginx-ingress-svc
|
|
|
|
labels:
|
|
|
|
k8s-app: nginx-app-ingress
|
2022-03-18 20:03:45 +00:00
|
|
|
spec:
|
2022-06-15 15:55:05 +00:00
|
|
|
ports:
|
|
|
|
- port: 80
|
|
|
|
targetPort: 80
|
|
|
|
protocol: TCP
|
|
|
|
name: http
|
|
|
|
selector:
|
|
|
|
k8s-app: nginx-app-ingress
|
2022-03-18 20:03:45 +00:00
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
|
|
kind: ReplicationController
|
|
|
|
metadata:
|
2022-06-15 15:55:05 +00:00
|
|
|
name: test-ingress
|
2022-03-18 20:03:45 +00:00
|
|
|
spec:
|
2022-06-15 15:55:05 +00:00
|
|
|
replicas: 2
|
|
|
|
selector:
|
|
|
|
k8s-app: nginx-app-ingress
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: nginx-app-ingress
|
|
|
|
spec:
|
|
|
|
terminationGracePeriodSeconds: 60
|
|
|
|
containers:
|
|
|
|
- name: testcontainer
|
|
|
|
image: shylajarancher19/shylajaarm64:v1.0
|
|
|
|
ports:
|
|
|
|
- containerPort: 80
|