izaac-frontend/deployment.yml
Jakub K aa13593235
All checks were successful
continuous-integration/drone Build is passing
poprawki w klomponentach, dodanie dyrektyw nginx
2023-11-21 21:54:18 +01:00

48 lines
842 B
YAML

apiVersion: v1
kind: ConfigMap
metadata:
name: nginx-config
data:
default.conf: |
server {
listen 80;
server_name izaac-frontend.izaac.pl;
root /usr/share/nginx/html;
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
}
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: izaac-frontend
spec:
replicas: 1
selector:
matchLabels:
app: izaac-frontend
template:
metadata:
labels:
app: izaac-frontend
spec:
containers:
- name: izaac-frontend
image: registry.izaac.pl:5000/izaac-frontend:latest
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
name: izaac-frontend
spec:
selector:
app: izaac-frontend
ports:
- protocol: TCP
port: 80
targetPort: 80