kolokvij
This commit is contained in:
24
k8s/deployment.yaml
Normal file
24
k8s/deployment.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
# OVAJ FAJL PIŠEŠ TI — vidi specifikaciju u zadatku
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ispit-app
|
||||
namespace: ispit1-petracamber
|
||||
mspec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ispit-app
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ispit-app
|
||||
spec:
|
||||
containers:
|
||||
- name: ispit-app
|
||||
image: git.fpmoz.sum.ba/petracamber/ispit-app:1.0
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
env:
|
||||
- name: AUTOR-PetraCamber
|
||||
value: "petracamber"
|
||||
20
k8s/ingress.yaml
Normal file
20
k8s/ingress.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
# OVAJ FAJL PIŠEŠ TI — vidi specifikaciju u zadatku
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: ingress
|
||||
metadata:
|
||||
name: ispit-ingress
|
||||
namespace: ispit1-petracamber
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
rules:
|
||||
- host: petracamber.argocd.fpmoz.sum.ba
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: ispit-svc
|
||||
port:
|
||||
number: 80
|
||||
|
||||
13
k8s/service.yaml
Normal file
13
k8s/service.yaml
Normal file
@@ -0,0 +1,13 @@
|
||||
# OVAJ FAJL PIŠEŠ TI — vidi specifikaciju u zadatku
|
||||
apiVersion: v1
|
||||
kind: service
|
||||
metadata:
|
||||
name: ispit-svc
|
||||
namespace: ispit1-petracamber
|
||||
spec:
|
||||
selector:
|
||||
app: ispit-app
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user