Commit f7704baf authored by Jose Ernesto Suarez's avatar Jose Ernesto Suarez

ingress

parent f51928ef
kubectl create secret tls edu-wedoops-tls-cert \
--key certs/edu.wedoops.io.key \
--cert certs/edu.wedoops.io.crt \
--dry-run -o yaml | kubectl apply -f -
\ No newline at end of file
apiVersion: v1
kind: Service
metadata:
name: app-final-service
spec:
type: ClusterIP
selector:
app: app-final
ports:
- protocol: TCP
port: 80
targetPort: foreman-port
---
apiVersion: v1
kind: Service
metadata:
name: first-app-service
spec:
type: ClusterIP
selector:
app: firstapp
ports:
- protocol: TCP
port: 80
targetPort: nodejs-port
---
apiVersion: v1
kind: Service
metadata:
name: first-deploy-service
spec:
type: ClusterIP
selector:
app: firstdeploy
ports:
- protocol: TCP
port: 80
targetPort: nodejs-port
---
apiVersion: v1
kind: Service
metadata:
name: awesome-service
spec:
type: ClusterIP
selector:
app: firstapp
ports:
- protocol: TCP
port: 80
targetPort: nodejs-port
---
apiVersion: v1
kind: Service
metadata:
name: cool-app
spec:
type:
type: ClusterIP
selector:
app: rails
ports:
- protocol: TCP
port: 80
targetPort: rails-port
---
apiVersion: v1
kind: Service
metadata:
name: sinatra
spec:
type: ClusterIP
selector:
app: sinatra
ports:
- protocol: TCP
port: 80
targetPort: 4567
\ No newline at end of file
......@@ -6,7 +6,7 @@ metadata:
nginx.ingress.kubernetes.io/auth-type: basic
nginx.ingress.kubernetes.io/auth-secret: basic-auth
nginx.ingress.kubernetes.io/auth-realm: 'Authentication Required - Service'
kubernetes.io/ingress.class: "nginx"
kubernetes.io/ingress.class: nginx
spec:
tls:
- hosts:
......@@ -20,19 +20,12 @@ spec:
backend:
serviceName: cool-app
servicePort: 80
- host: apache.edu.wedoops.io
- host: deploy.edu.wedoops.io
http:
paths:
- path: /
backend:
serviceName: first-app-service
servicePort: 80
- host: node.edu.wedoops.io
http:
paths:
- path: /
backend:
serviceName: awesome-service
serviceName: first-deploy-service
servicePort: 80
- host: sinatra.edu.wedoops.io
http:
......
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