Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
devops-intern-labs
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Nam
devops-intern-labs
Commits
2a3e1cad
Commit
2a3e1cad
authored
Jan 18, 2024
by
Vũ Hoàng Nam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Ingress for web-app and self TSL cert for loadbalancing trafic
parent
170eeeda
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
2 deletions
+32
-2
settings.py
Week5/web-app/django_minio_docker_compose/settings.py
+1
-1
app-deployment.yml
Week8/web-app-minio/templates/app-deployment.yml
+1
-1
README.md
Week9/README.md
+10
-0
ingress.yml
Week9/ingress.yml
+20
-0
No files found.
Week5/web-app/django_minio_docker_compose/settings.py
View file @
2a3e1cad
...
...
@@ -26,7 +26,7 @@ SECRET_KEY = 'django-insecure-i+5cy#s&7!o7g!s4c785ztp(*d@@hyxkhrmjafhuz0m@9zg@(*
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG
=
True
ALLOWED_HOSTS
=
[]
ALLOWED_HOSTS
=
[
"web-app.com"
]
# Application definition
...
...
Week8/web-app-minio/templates/app-deployment.yml
View file @
2a3e1cad
...
...
@@ -23,7 +23,7 @@ spec:
containers
:
-
name
:
{{
.Chart.Name
}}
image
:
"
{{
.Values.image.repository
}}:{{
.Values.image.tag}}"
pullPolicy
:
IfNotPresent
pullPolicy
:
Always
envFrom
:
-
configMapRef
:
name
:
"
{{
include
"web-app-minio.name" . }}-cm"
...
...
Week9/README.md
0 → 100644
View file @
2a3e1cad
Create tls command
```
openssl req -x509 -newkey rsa:4096 -sha256 -nodes -keyout tls.key -out tls.crt -subj "/CN=web-app.com" -days 36
```
Create secret tls
```
kubectl create secret tls web-app-tls --cert=tls.crt --key=tls.key
```
\ No newline at end of file
Week9/ingress.yml
0 → 100644
View file @
2a3e1cad
apiVersion
:
networking.k8s.io/v1
kind
:
Ingress
metadata
:
name
:
tls-ingress
spec
:
tls
:
-
hosts
:
-
web-app.com
secretName
:
web-app-tls
rules
:
-
host
:
web-app.com
http
:
paths
:
-
path
:
/
pathType
:
Prefix
backend
:
service
:
name
:
web-app-minio-svc
port
:
number
:
8000
\ No newline at end of file
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