-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configurations for webserver003 and webserver004, including deplo…
…yments, services, namespaces, and ingress rules
- Loading branch information
1 parent
7ed4114
commit a2b56b7
Showing
19 changed files
with
337 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
blank_issues_enabled: false # Disable blank issues |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
**/*/Secret.yaml | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
**/*/Secret.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
![logo](https://eliasdh.com/assets/media/images/logo-github.png) | ||
# 💙🤍Setup Secrets🤍💙 | ||
|
||
## 📘Table of Contents | ||
|
||
1. [📘Table of Contents](#📘table-of-contents) | ||
2. [🖖Introduction](#🖖introduction) | ||
3. [✨Steps](#✨steps) | ||
1. [👉Step 1: Create a GitHub Secrets](#👉step-1-create-a-github-secrets) | ||
2. [👉Step 2: Create a GitHub Secrets](#👉step-2-create-a-github-secrets) | ||
4. [🔗Links](#🔗links) | ||
|
||
--- | ||
|
||
## 🖖Introduction | ||
|
||
This document provides a step-by-step guide to setting up `Kubernetes Secrets` on the servers (nodes) in the supercluster. The steps outlined in this document are essential for ensuring the proper functioning of the servers (nodes) and the supercluster. | ||
|
||
## ✨Steps | ||
|
||
### 👉Step 1: Create a GitHub Secrets | ||
|
||
```bash | ||
kubectl create secret docker-registry github-registry \ | ||
--docker-server=https://ghcr.io \ | ||
--docker-username=<username> \ | ||
--docker-password=<access_token> | ||
``` | ||
|
||
### 👉Step 2: Create a GitHub Secrets | ||
|
||
```bash | ||
kubectl create secret docker-registry gitlab-registry \ | ||
--docker-server=registry.gitlab.com \ | ||
--docker-username=<username> \ | ||
--docker-password=<access_token> \ | ||
--docker-email=<email> | ||
``` | ||
|
||
## 🔗Links | ||
- 👯 Web hosting company [EliasDH.com](https://eliasdh.com). | ||
- 📫 How to reach us elias.dehondt@outlook.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: letsencrypt-prod | ||
namespace: webserver003 | ||
spec: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: elias.dehondt@outlook.com | ||
privateKeySecretRef: | ||
name: letsencrypt-prod-key | ||
solvers: | ||
- http01: | ||
ingress: | ||
class: nginx | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: webserver003-deployment | ||
namespace: webserver003 | ||
spec: | ||
replicas: 3 | ||
selector: | ||
matchLabels: | ||
app: webserver003 | ||
template: | ||
metadata: | ||
labels: | ||
app: webserver003 | ||
spec: | ||
containers: | ||
- name: webserver003-container | ||
image: "ghcr.io/eliasdh-com/levelupbe-frontend:latest" | ||
ports: | ||
- containerPort: 8080 | ||
resources: | ||
requests: | ||
memory: "64Mi" | ||
cpu: "250m" | ||
limits: | ||
memory: "128Mi" | ||
cpu: "500m" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: ingress | ||
namespace: webserver003 | ||
annotations: | ||
cert-manager.io/cluster-issuer: letsencrypt-prod | ||
nginx.ingress.kubernetes.io/ingress.class: "nginx" | ||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP" | ||
nginx.ingress.kubernetes.io/ssl-redirect: "true" # Redirect HTTP to HTTPS | ||
spec: | ||
ingressClassName: nginx | ||
tls: | ||
- hosts: | ||
- levelup.be | ||
secretName: levelup-tls | ||
- hosts: | ||
- www.levelup.be | ||
secretName: wwwlevelup-tls | ||
rules: | ||
- host: levelup.be | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: webserver003-service | ||
port: | ||
number: 80 | ||
- host: www.levelup.be | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: webserver003-service | ||
port: | ||
number: 80 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: webserver003 | ||
labels: | ||
name: webserver003 | ||
app: webserver003 | ||
owner: "Ter Eiken Sport" | ||
environment: production | ||
annotations: | ||
description: This namespace is used for the webserver003 application. | ||
contact: info@eliasdh.com | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
--- | ||
apiVersion: cert-manager.io/v1 | ||
kind: ClusterIssuer | ||
metadata: | ||
name: letsencrypt-prod | ||
namespace: webserver004 | ||
spec: | ||
acme: | ||
server: https://acme-v02.api.letsencrypt.org/directory | ||
email: elias.dehondt@outlook.com | ||
privateKeySecretRef: | ||
name: letsencrypt-prod-key | ||
solvers: | ||
- http01: | ||
ingress: | ||
class: nginx | ||
--- |
Oops, something went wrong.