Skip to content

Commit

Permalink
Add Service and Namespace configurations for webserver001, webserver0…
Browse files Browse the repository at this point in the history
…02, and sshserver001; remove deprecated configurations for webserver1, webserver2, and sshserver1
  • Loading branch information
EliasDeHondt committed Dec 22, 2024
1 parent 8e3de3e commit f3c187e
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 56 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
apiVersion: v1
kind: Namespace
metadata:
name: webserver1
name: proxyserver001
labels:
name: webserver1
app: webserver1
name: proxyserver001
app: proxyserver001
owner: EliasDH
environment: production
annotations:
description: This namespace is used for the webserver1 application.
description: This namespace is used for the proxyserver001 application.
contact: info@eliasdh.com
---
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: sshserver1-deployment
namespace: sshserver1
name: sshserver001-deployment
namespace: sshserver001
labels:
app: sshserver1
app: sshserver001
spec:
replicas: 1
selector:
matchLabels:
app: sshserver1
app: sshserver001
template:
metadata:
labels:
app: sshserver1
app: sshserver001
spec:
containers:
- name: sshserver1-container
- name: sshserver001-container
image: lscr.io/linuxserver/openssh-server:latest
ports:
- containerPort: 2222
Expand All @@ -38,7 +38,7 @@ spec:
- name: USER_PASSWORD
valueFrom:
secretKeyRef:
name: sshserver1-secret
name: sshserver001-secret
key: password
- name: PASSWORD_ACCESS
value: "true"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
apiVersion: v1
kind: Namespace
metadata:
name: proxyserver1
name: sshserver001
labels:
name: proxyserver1
app: proxyserver1
name: sshserver001
app: sshserver001
owner: EliasDH
environment: production
annotations:
description: This namespace is used for the proxyserver1 application.
description: This namespace is used for the sshserver001 application.
contact: info@eliasdh.com
---
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
apiVersion: v1
kind: Service
metadata:
name: sshserver1-service
namespace: sshserver1
name: sshserver001-service
namespace: sshserver001
spec:
selector:
app: sshserver1
app: sshserver001
ports:
- protocol: TCP
port: 22
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
namespace: webserver2
namespace: webserver001
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: webserver1-deployment
namespace: webserver1
name: webserver001-deployment
namespace: webserver001
spec:
replicas: 3
selector:
matchLabels:
app: webserver1
app: webserver001
template:
metadata:
labels:
app: webserver1
app: webserver001
spec:
initContainers:
- name: init-git-clone
image: alpine/git
command: ["sh", "-c", "git clone --depth=1 https://github.com/EliasDH-com/Eliasdh.com.git /app"]
volumeMounts:
- name: webserver1-volume
- name: webserver001-volume
mountPath: /app
containers:
- name: webserver1-container
- name: webserver001-container
image: python:3.9-slim
command: ["python3", "-m", "http.server", "8080", "--directory", "/app", "--bind", "0.0.0.0"]
ports:
Expand All @@ -40,9 +40,9 @@ spec:
memory: "64Mi"
cpu: "250m"
volumeMounts:
- name: webserver1-volume
- name: webserver001-volume
mountPath: /app
volumes:
- name: webserver1-volume
- name: webserver001-volume
emptyDir: {}
---
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
namespace: webserver1
namespace: webserver001
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ingress.class: "nginx"
Expand All @@ -31,7 +31,7 @@ spec:
pathType: Prefix
backend:
service:
name: webserver1-service
name: webserver001-service
port:
number: 80
- host: www.eliasdh.com
Expand All @@ -41,7 +41,7 @@ spec:
pathType: Prefix
backend:
service:
name: webserver1-service
name: webserver001-service
port:
number: 80
---
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
apiVersion: v1
kind: Namespace
metadata:
name: sshserver1
name: webserver001
labels:
name: sshserver1
app: sshserver1
name: webserver001
app: webserver001
owner: EliasDH
environment: production
annotations:
description: This namespace is used for the sshserver1 application.
description: This namespace is used for the webserver001 application.
contact: info@eliasdh.com
---
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
apiVersion: v1
kind: Service
metadata:
name: webserver2-service
namespace: webserver2
name: webserver001-service
namespace: webserver001
spec:
selector:
app: webserver2
app: webserver001
ports:
- protocol: TCP
port: 80
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apiVersion: cert-manager.io/v1
kind: ClusterIssuer
metadata:
name: letsencrypt-prod
namespace: webserver1
namespace: webserver002
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: webserver2-deployment
namespace: webserver2
name: webserver002-deployment
namespace: webserver002
spec:
replicas: 3
selector:
matchLabels:
app: webserver2
app: webserver002
template:
metadata:
labels:
app: webserver2
app: webserver002
spec:
initContainers:
- name: init-git-clone
image: alpine/git
command: ["sh", "-c", "git clone --depth=1 https://github.com/EliasDH-com/Zizis.com.git /app"]
volumeMounts:
- name: webserver2-volume
- name: webserver002-volume
mountPath: /app
containers:
- name: webserver2-container
- name: webserver002-container
image: python:3.9-slim
command: ["python3", "-m", "http.server", "8080", "--directory", "/app", "--bind", "0.0.0.0"]
ports:
Expand All @@ -40,9 +40,9 @@ spec:
memory: "64Mi"
cpu: "250m"
volumeMounts:
- name: webserver2-volume
- name: webserver002-volume
mountPath: /app
volumes:
- name: webserver2-volume
- name: webserver002-volume
emptyDir: {}
---
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress
namespace: webserver2
namespace: webserver002
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/ingress.class: "nginx"
Expand All @@ -31,7 +31,7 @@ spec:
pathType: Prefix
backend:
service:
name: webserver2-service
name: webserver002-service
port:
number: 80
- host: www.zizis.com
Expand All @@ -41,7 +41,7 @@ spec:
pathType: Prefix
backend:
service:
name: webserver2-service
name: webserver002-service
port:
number: 80
---
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
apiVersion: v1
kind: Namespace
metadata:
name: webserver2
name: webserver002
labels:
name: webserver2
app: webserver2
name: webserver002
app: webserver002
owner: Zizis
environment: production
annotations:
description: This namespace is used for the webserver2 application.
description: This namespace is used for the webserver002 application.
contact: info@eliasdh.com
---
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
apiVersion: v1
kind: Service
metadata:
name: webserver1-service
namespace: webserver1
name: webserver002-service
namespace: webserver002
spec:
selector:
app: webserver1
app: webserver002
ports:
- protocol: TCP
port: 80
Expand Down

0 comments on commit f3c187e

Please sign in to comment.