add:moj-servis k8s manifests (deplyoment + service)
This commit is contained in:
53
k8s/moj-servis~/deployment.yaml
Normal file
53
k8s/moj-servis~/deployment.yaml
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
|
||||||
|
kind: Deployment
|
||||||
|
|
||||||
|
metadata:
|
||||||
|
|
||||||
|
name: moj-servis
|
||||||
|
|
||||||
|
namespace: student-VAŠ_KORISNIK
|
||||||
|
|
||||||
|
spec:
|
||||||
|
|
||||||
|
replicas: 1
|
||||||
|
|
||||||
|
selector:
|
||||||
|
|
||||||
|
matchLabels:
|
||||||
|
|
||||||
|
app: moj-servis
|
||||||
|
|
||||||
|
template:
|
||||||
|
|
||||||
|
metadata:
|
||||||
|
|
||||||
|
labels:
|
||||||
|
|
||||||
|
app: moj-servis
|
||||||
|
|
||||||
|
spec:
|
||||||
|
|
||||||
|
containers:
|
||||||
|
|
||||||
|
- name: moj-servis
|
||||||
|
|
||||||
|
image: git.fpmoz.sum.ba/VAŠ_KORISNIK/moj-servis:1.0
|
||||||
|
|
||||||
|
ports:
|
||||||
|
|
||||||
|
- containerPort: 8000
|
||||||
|
|
||||||
|
resources:
|
||||||
|
|
||||||
|
requests:
|
||||||
|
|
||||||
|
memory: "64Mi"
|
||||||
|
|
||||||
|
cpu: "50m"
|
||||||
|
|
||||||
|
limits:
|
||||||
|
|
||||||
|
memory: "128Mi"
|
||||||
|
|
||||||
|
cpu: "200m"
|
||||||
26
k8s/moj-servis~/service.yaml
Normal file
26
k8s/moj-servis~/service.yaml
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
|
||||||
|
apiVersion: v1
|
||||||
|
|
||||||
|
kind: Service
|
||||||
|
|
||||||
|
metadata:
|
||||||
|
|
||||||
|
name: moj-servis-svc
|
||||||
|
|
||||||
|
namespace: student-zvoneC
|
||||||
|
|
||||||
|
spec:
|
||||||
|
|
||||||
|
selector:
|
||||||
|
|
||||||
|
app: moj-servis
|
||||||
|
|
||||||
|
ports:
|
||||||
|
|
||||||
|
- port: 80
|
||||||
|
|
||||||
|
targetPort: 8000
|
||||||
|
|
||||||
|
protocol: TCP
|
||||||
|
|
||||||
|
type: NodePort
|
||||||
Reference in New Issue
Block a user