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

added ingress controller

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