mirror of https://github.com/k3s-io/k3s
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
845 B
49 lines
845 B
3 years ago
|
apiVersion: extensions/v1beta1
|
||
|
kind: Ingress
|
||
|
metadata:
|
||
|
name: ingress
|
||
|
spec:
|
||
|
rules:
|
||
|
- host: foo1.bar.com
|
||
|
http:
|
||
|
paths:
|
||
|
- path: /name.html
|
||
|
backend:
|
||
|
serviceName: nginx-ingress-svc
|
||
|
servicePort: 80
|
||
|
---
|
||
|
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
|