Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
curso-kubernetes
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jose Ernesto Suarez
curso-kubernetes
Commits
f7704baf
Commit
f7704baf
authored
Jun 16, 2019
by
Jose Ernesto Suarez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ingress
parent
f51928ef
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
85 additions
and
10 deletions
+85
-10
create-cert.sh
12.ingress/create-cert.sh
+4
-0
hide_services.yaml
12.ingress/hide_services.yaml
+78
-0
ingress.yaml
12.ingress/ingress.yaml
+3
-10
No files found.
12.ingress/create-cert.sh
0 → 100755
View file @
f7704baf
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
12.ingress/hide_services.yaml
0 → 100644
View file @
f7704baf
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
12.ingress/ingress.yaml
View file @
f7704baf
...
@@ -6,7 +6,7 @@ metadata:
...
@@ -6,7 +6,7 @@ metadata:
nginx.ingress.kubernetes.io/auth-type
:
basic
nginx.ingress.kubernetes.io/auth-type
:
basic
nginx.ingress.kubernetes.io/auth-secret
:
basic-auth
nginx.ingress.kubernetes.io/auth-secret
:
basic-auth
nginx.ingress.kubernetes.io/auth-realm
:
'
Authentication
Required
-
Service'
nginx.ingress.kubernetes.io/auth-realm
:
'
Authentication
Required
-
Service'
kubernetes.io/ingress.class
:
"
nginx"
kubernetes.io/ingress.class
:
nginx
spec
:
spec
:
tls
:
tls
:
-
hosts
:
-
hosts
:
...
@@ -20,19 +20,12 @@ spec:
...
@@ -20,19 +20,12 @@ spec:
backend
:
backend
:
serviceName
:
cool-app
serviceName
:
cool-app
servicePort
:
80
servicePort
:
80
-
host
:
apache
.edu.wedoops.io
-
host
:
deploy
.edu.wedoops.io
http
:
http
:
paths
:
paths
:
-
path
:
/
-
path
:
/
backend
:
backend
:
serviceName
:
first-app-service
serviceName
:
first-deploy-service
servicePort
:
80
-
host
:
node.edu.wedoops.io
http
:
paths
:
-
path
:
/
backend
:
serviceName
:
awesome-service
servicePort
:
80
servicePort
:
80
-
host
:
sinatra.edu.wedoops.io
-
host
:
sinatra.edu.wedoops.io
http
:
http
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment