webapps
This commit is contained in:
42
apps/nginx-test-deployment.yaml
Normal file
42
apps/nginx-test-deployment.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-deployment
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
run: nginx-deployment
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
run: nginx-deployment
|
||||
spec:
|
||||
containers:
|
||||
- image: nginx
|
||||
name: nginx-webserver
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: nginx-service
|
||||
spec:
|
||||
type: NodePort
|
||||
selector:
|
||||
run: nginx-deployment
|
||||
ports:
|
||||
- port: 80
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1beta1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: nginx-test
|
||||
spec:
|
||||
rules:
|
||||
- host: nginx-test.lan
|
||||
http:
|
||||
paths:
|
||||
- backend:
|
||||
serviceName: nginx-service
|
||||
servicePort: 80
|
||||
Reference in New Issue
Block a user