Commit 03457e2b authored by GRANDGERARD Gilles's avatar GRANDGERARD Gilles
Browse files

correction filepizza

parent 509a15ef
Pipeline #23 canceled with stages
#!/bin/bash
kubectl delete -f filepizza-service.yml
kubectl delete -f filepizza-deployment.yml
microk8s.kubectl delete svc/filepizza
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: filepizza
spec:
type: NodePort
selector:
service: filepizza
ports:
- protocol: TCP
name: "http-filepizza"
port: 80
targetPort: 80
nodePort: 30080
status:
loadBalancer: {}
\ No newline at end of file
#!/bin/bash
microk8s.kubectl create -f filepizza-deployment.yml
microk8s.kubectl expose deployment filepizza --port 81 --target-port 80 --type ClusterIP --selector=run=filepizza --name=filepizza
\ No newline at end of file
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