56 lines
1.0 KiB
YAML
56 lines
1.0 KiB
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: assign-ing
|
|
namespace: assign
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: assign.icurfer.com
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: assign-svc
|
|
port:
|
|
number: 80
|
|
path: /
|
|
pathType: Prefix
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: assign-svc
|
|
namespace: assign
|
|
spec:
|
|
selector:
|
|
app: assign
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: assign-dp
|
|
namespace: assign
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: assign
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: assign
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx:latest
|
|
volumeMounts:
|
|
- name: greeting-html
|
|
mountPath: /usr/share/nginx/html
|
|
volumes:
|
|
- name: greeting-html
|
|
configMap:
|
|
name: greeting-html-config |