dodati aplikaciju, yaml
This commit is contained in:
17
k8s/service.yaml
Normal file
17
k8s/service.yaml
Normal file
@@ -0,0 +1,17 @@
|
||||
# TODO: napiši Service
|
||||
# Ime: k2-svc | Namespace: kolokvij2-IME-PREZIME
|
||||
# Tip: ClusterIP | port: 80 -> targetPort: 8000
|
||||
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: k2-svc
|
||||
namespace: student-nikolahrkac
|
||||
spec:
|
||||
selector:
|
||||
app: k2-app
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 8000
|
||||
protocol: TCP
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user