nginx added
This commit is contained in:
33
nginx/deploy.yaml
Normal file
33
nginx/deploy.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: nginx-nfs-webseite
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: nginx-nfs
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: nginx-nfs
|
||||
spec:
|
||||
containers:
|
||||
- name: nginx
|
||||
image: nginx:alpine
|
||||
volumeMounts:
|
||||
- name: web-content
|
||||
mountPath: /usr/share/nginx/html
|
||||
readOnly: true
|
||||
- name: nginx-vhosts
|
||||
mountPath: /etc/nginx/conf.d
|
||||
readOnly: true
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumes:
|
||||
- name: web-content
|
||||
persistentVolumeClaim:
|
||||
claimName: nfs-media-nginx
|
||||
- name: nginx-vhosts
|
||||
configMap:
|
||||
name: nginx-vhosts
|
||||
Reference in New Issue
Block a user