Commit d787c40f authored by GRANDGERARD Gilles's avatar GRANDGERARD Gilles
Browse files

maj filepizza avec nanmespace

parent bffa58e6
#!/bin/bash
kubectl delete -f filepizza-service.yml
kubectl delete -f filepizza-deployment.yml
microk8s.kubectl delete -f filepizza-service.yml
microk8s.kubectl delete -f filepizza-deployment.yml
......@@ -3,6 +3,7 @@ apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: filepizza
namespace: hackathon
spec:
selector:
matchLabels:
......
......@@ -2,16 +2,17 @@ apiVersion: v1
kind: Service
metadata:
name: filepizza
namespace: hackathon
spec:
type: NodePort
type: LoadBalancer
selector:
service: filepizza
app: filepizza
ports:
- protocol: TCP
name: "http-filepizza"
port: 80
targetPort: 80
nodePort: 30080
port: 80 # port exposé sur le cluster Interne
targetPort: 80 # port exposé
nodePort: 30000
status:
loadBalancer: {}
\ No newline at end of file
#!/bin/bash
microk8s.kubectl create -f filepizza-deployment.yml
microk8s.kubectl create -f filepizza-deployment.yml
microk8s.kubectl create -f filepizza-service.yml
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment