prvi commit
This commit is contained in:
27
k8s/deployment.yaml
Normal file
27
k8s/deployment.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
|
||||
metadata:
|
||||
name: priprema-za-kolokvij
|
||||
namespace: student-iva
|
||||
|
||||
spec:
|
||||
replicas: 1
|
||||
|
||||
selector:
|
||||
matchLabels:
|
||||
app: priprema-za-kolokvij
|
||||
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: priprema-za-kolokvij
|
||||
|
||||
spec:
|
||||
containers:
|
||||
- name: priprema-za-kolokvij
|
||||
|
||||
image: git.fpmoz.sum.ba/iva/priprema-za-kolokvij:1.0
|
||||
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
25
k8s/ingress.yaml
Normal file
25
k8s/ingress.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
|
||||
metadata:
|
||||
name: priprema-ingress
|
||||
namespace: student-iva
|
||||
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
|
||||
rules:
|
||||
- host: iva.argocd.fpmoz.sum.ba
|
||||
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
|
||||
pathType: Prefix
|
||||
|
||||
backend:
|
||||
service:
|
||||
name: priprema-svc
|
||||
|
||||
port:
|
||||
number: 80
|
||||
16
k8s/service.yaml
Normal file
16
k8s/service.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
metadata:
|
||||
name: priprema-svc
|
||||
namespace: student-iva
|
||||
|
||||
spec:
|
||||
selector:
|
||||
app: priprema-za-kolokvij
|
||||
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user