initial setup
This commit is contained in:
35
deployment/nginx.deployment.yaml
Normal file
35
deployment/nginx.deployment.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: quartz-physics
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: quartz-physics
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: quartz-physics
|
||||
spec:
|
||||
containers:
|
||||
- name: quartz-physics
|
||||
image: nginx
|
||||
resources:
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "500m"
|
||||
ports:
|
||||
- containerPort: 80
|
||||
volumeMounts:
|
||||
- mountPath: /usr/share/nginx/html
|
||||
name: quartz-physics
|
||||
- mountPath: /etc/nginx/nginx.conf
|
||||
subPath: nginx.conf
|
||||
name: nginx
|
||||
volumes:
|
||||
- name: quartz-physics
|
||||
persistentVolumeClaim:
|
||||
claimName: quartz-nfs
|
||||
- name: nginx
|
||||
configMap:
|
||||
name: nginx-config
|
||||
Reference in New Issue
Block a user