48 lines
842 B
YAML
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 |