prvi commit
This commit is contained in:
35
k8s/deployment.yaml
Normal file
35
k8s/deployment.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
|
||||
metadata:
|
||||
name: priprema-za-kolokvij
|
||||
namespace: student-marijam1909
|
||||
|
||||
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/marijam1909/priprema-za-kolokvij:1.0
|
||||
|
||||
ports:
|
||||
- containerPort: 8000
|
||||
|
||||
resources:
|
||||
requests:
|
||||
memory: "64Mi"
|
||||
cpu: "50m"
|
||||
|
||||
limits:
|
||||
memory: "128Mi"
|
||||
cpu: "200m"
|
||||
24
k8s/ingress.yaml
Normal file
24
k8s/ingress.yaml
Normal file
@@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
|
||||
metadata:
|
||||
name: priprema-ingress
|
||||
namespace: student-marijam1909
|
||||
|
||||
spec:
|
||||
ingressClassName: traefik
|
||||
|
||||
rules:
|
||||
- host: marijam1909.argocd.fpmoz.sum.ba
|
||||
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
|
||||
backend:
|
||||
service:
|
||||
name: priprema-svc
|
||||
|
||||
port:
|
||||
number: 80
|
||||
17
k8s/service.yaml
Normal file
17
k8s/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
||||
metadata:
|
||||
name: priprema-svc
|
||||
namespace: student-marijam1909
|
||||
|
||||
spec:
|
||||
selector:
|
||||
app: priprema-za-kolokvij
|
||||
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user