mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
97c69546c5
Signed-off-by: Shylaja Devadiga <shylaja@rancher.com>
52 lines
1001 B
YAML
52 lines
1001 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: test-ingress
|
|
spec:
|
|
rules:
|
|
- host: foo1.bar.com
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: nginx-ingress-svc
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: ImplementationSpecific
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: nginx-ingress-svc
|
|
labels:
|
|
k8s-app: nginx-app-ingress
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|
|
protocol: TCP
|
|
name: http
|
|
selector:
|
|
k8s-app: nginx-app-ingress
|
|
---
|
|
apiVersion: v1
|
|
kind: ReplicationController
|
|
metadata:
|
|
name: test-ingress
|
|
spec:
|
|
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
|