58 lines
1.3 KiB
YAML
58 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: geocrop-web
|
|
namespace: geocrop
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: geocrop-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: geocrop-web
|
|
spec:
|
|
containers:
|
|
- name: web
|
|
image: nginx:alpine
|
|
ports:
|
|
- containerPort: 80
|
|
volumeMounts:
|
|
- name: html
|
|
mountPath: /usr/share/nginx/html/index.html
|
|
subPath: index.html
|
|
- name: assets
|
|
mountPath: /usr/share/nginx/html/assets
|
|
- name: profile
|
|
mountPath: /usr/share/nginx/html/profile.jpg
|
|
subPath: profile.jpg
|
|
- name: favicon
|
|
mountPath: /usr/share/nginx/html/favicon.jpg
|
|
subPath: favicon.jpg
|
|
volumes:
|
|
- name: html
|
|
configMap:
|
|
name: geocrop-web-html
|
|
- name: assets
|
|
configMap:
|
|
name: geocrop-web-assets
|
|
- name: profile
|
|
configMap:
|
|
name: geocrop-web-profile
|
|
- name: favicon
|
|
configMap:
|
|
name: geocrop-web-favicon
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: geocrop-web
|
|
namespace: geocrop
|
|
spec:
|
|
selector:
|
|
app: geocrop-web
|
|
ports:
|
|
- port: 80
|
|
targetPort: 80
|