Commit f9c0b51b authored by Luc Bourdot's avatar Luc Bourdot
Browse files

Merge branch 'master' into 'filepizza'

# Conflicts:
#   kubernetes/filepizza/filepizza-deployment.yml
parents af3b9ecc 986adedd
......@@ -2,6 +2,10 @@
# on : Install Ubuntu 18.04
snap install microk8s --classic
cd /snap/bin
sudo ln -s /snap/bin/microk8s.kubectl kubectl
microk8s.kubectl get all --all-namespaces
microk8s.kubectl get no
microk8s.enable dns dashboard
......
#!/bin/bash
microk8s.kubectl delete -f filepizza-service.yml
microk8s.kubectl delete -f filepizza-deployment.yml
apiVersion: v1
kind: Service
metadata:
name: filepizza
namespace: hackathon
spec:
type: LoadBalancer
selector:
app: filepizza
ports:
- protocol: TCP
name: "http-filepizza"
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-service.yml
\ No newline at end of file
#!/bin/bash
microk8s.kubectl create -f hackathon-namespace.yml
apiVersion: v1
kind: Namespace
metadata:
name: hackathon
\ No newline at end of file
# redisdeployment.yml
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: combine
#namespace: hackathon
spec:
selector:
matchLabels:
app: combine
replicas: 1 # tells deployment to run 2 pods matching the template
template:
metadata:
labels:
app: combine
spec:
containers:
- name: scrumbl
image: timmit/scrumblr:latest
env:
- name: GET_HOSTS_FROM
value: dns
ports:
- containerPort: 8080
- name: redis
image: redis:latest
env:
- name: GET_HOSTS_FROM
value: dns
ports:
- containerPort: 6379
name: redis
protocol: TCP
---
kind: Service
apiVersion: v1
metadata:
name: combine
spec:
selector:
app: combine
ports:
- protocol: TCP
port: 8000
targetPort: 8080
type: LoadBalancer
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