-
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.
Update Kubernetes configurations: modify YAML validation paths, enhan…
…ce documentation, and introduce Keepalived resources for proxy server.
- Loading branch information
1 parent
e1f2a7f
commit 4bd6419
Showing
8 changed files
with
185 additions
and
24 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
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 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
45 changes: 45 additions & 0 deletions
45
Supercluster/Cluster01/ProxyServer1/Keepalived/ConfigMap.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,45 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: proxyserver1-keepalived-config | ||
namespace: proxyserver1 | ||
data: | ||
keepalived.conf: | | ||
global_defs { | ||
router_id proxy1 | ||
script_user root | ||
script_security 1 | ||
} | ||
vrrp_script check_apiserver { | ||
script "/etc/keepalived/check_apiserver.sh" | ||
interval 3 | ||
weight -2 | ||
fall 10 | ||
rise 2 | ||
} | ||
vrrp_instance VI_1 { | ||
state MASTER | ||
interface eth0 | ||
virtual_router_id 51 | ||
priority 101 | ||
advert_int 1 | ||
authentication { | ||
auth_type PASS | ||
auth_pass 1111 | ||
} | ||
virtual_ipaddress { | ||
192.168.1.170 | ||
} | ||
track_script { | ||
check_apiserver | ||
} | ||
} | ||
--- |
33 changes: 33 additions & 0 deletions
33
Supercluster/Cluster01/ProxyServer1/Keepalived/Deployment.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,33 @@ | ||
############################ | ||
# @author Elias De Hondt # | ||
# @see https://eliasdh.com # | ||
# @since 24/11/2024 # | ||
############################ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: proxyserver1-keepalived-deployment | ||
namespace: proxyserver1 | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: proxyserver1-keepalived-deployment | ||
template: | ||
metadata: | ||
labels: | ||
app: proxyserver1-keepalived-deployment | ||
spec: | ||
containers: | ||
- name: proxyserver1-keepalived-container | ||
image: osixia/keepalived:latest | ||
volumeMounts: | ||
- name: proxyserver1-keepalived-config | ||
mountPath: /etc/keepalived/keepalived.conf | ||
subPath: keepalived.conf | ||
volumes: | ||
- name: proxyserver1-keepalived-config | ||
configMap: | ||
name: proxyserver1-keepalived-config | ||
--- |
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: proxyserver1 | ||
labels: | ||
name: proxyserver1 | ||
app: proxyserver1 | ||
owner: EliasDH | ||
environment: production | ||
annotations: | ||
description: This namespace is used for the proxyserver1 application. | ||
contact: info@eliasdh.com | ||
--- |