Commit 199e1025 authored by Spiros Koulouzis's avatar Spiros Koulouzis

added ingress controller

parent 75bccf9f
#!/bin/bash
kubectl create -f ../k8s/CONF/
sleep 5
kubectl get all
kubectl delete -f ../k8s/CONF/
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
#namespace: conf
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
......@@ -21,12 +22,17 @@ spec:
#backend:
#serviceName: manager
#servicePort: 8080
- path: /semaphore
- path: /conf/semaphore
backend:
serviceName: semaphore
servicePort: 3000
- path: /sure-tosca
- path: /conf/sure-tosca
backend:
serviceName: sure-tosca
servicePort: 8081
servicePort: 8081
- path: /conf/manager
backend:
serviceName: manager
servicePort: 8080
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: v1
kind: Service
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......@@ -9,10 +10,10 @@ metadata:
io.kompose.service: manager
name: manager
spec:
type: NodePort
ports:
- port: 8080
nodePort: 30000
- name: "8080"
port: 8080
targetPort: 8080
selector:
io.kompose.service: manager
status:
......
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: v1
kind: Service
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose --file docker-compose.yml convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: v1
kind: Service
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose --file docker-compose.yml convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......@@ -23,7 +24,6 @@ spec:
containers:
- image: rabbitmq:3.8-management
name: rabbit
imagePullPolicy: Always
resources: {}
restartPolicy: Always
status: {}
apiVersion: v1
kind: Service
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose --file docker-compose.yml convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: v1
kind: Service
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......@@ -9,10 +10,6 @@ metadata:
io.kompose.service: semaphore
name: semaphore
spec:
#type: NodePort
#ports:
#- port: 3000
#nodePort: 30002
ports:
- name: "3000"
port: 3000
......
apiVersion: apps/v1
kind: Deployment
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
apiVersion: v1
kind: Service
metadata:
#namespace: conf
annotations:
kompose.cmd: kompose convert
kompose.version: 1.16.0 (0c01309)
......
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