Adapt GitOps bootstrap for private single-node Hetzner cluster
This commit is contained in:
+1
-1
@@ -28,7 +28,7 @@ spec:
|
||||
project: default
|
||||
|
||||
source:
|
||||
repoURL: https://github.com/YOUR_GITHUB_USERNAME/k8s-starter-pack.git
|
||||
repoURL: https://tea.ahmza.com/ahmza.com/vps-k8s.git
|
||||
targetRevision: main
|
||||
path: apps/demo
|
||||
|
||||
|
||||
+4
-16
@@ -3,28 +3,16 @@
|
||||
# time. This Service selects any Pod labelled app: demo (see
|
||||
# deployment.yaml) and forwards traffic to it.
|
||||
#
|
||||
# type: LoadBalancer asks the cluster for a real, dedicated IP address that
|
||||
# anything on your network can reach directly. On a cloud provider that
|
||||
# would provision an actual cloud load balancer; on bare metal there's
|
||||
# nothing to provision it, which is exactly the gap MetalLB
|
||||
# (apps/metallb.yaml) fills — it watches for LoadBalancer Services and
|
||||
# hands them an address from the pool configured in
|
||||
# apps/metallb/templates/ipaddresspool.yaml. Until that pool exists, this
|
||||
# Service's address will show as <pending>; see docs/05-metallb.md.
|
||||
# ClusterIP keeps this demo internal: this Hetzner deployment does not use
|
||||
# MetalLB or a cloud load balancer. Reach it with kubectl port-forward over
|
||||
# the private Kubernetes API rather than opening public application ports.
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: demo
|
||||
namespace: demo
|
||||
annotations:
|
||||
# Requests this specific address from MetalLB's pool, so it stays
|
||||
# predictable across rebuilds instead of getting whatever's next free.
|
||||
# Must fall inside the range in
|
||||
# apps/metallb/templates/ipaddresspool.yaml, or MetalLB will never
|
||||
# satisfy the request.
|
||||
metallb.universe.tf/loadBalancerIPs: "192.168.1.241" # EDIT ME
|
||||
spec:
|
||||
type: LoadBalancer
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: demo
|
||||
ports:
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ spec:
|
||||
project: default
|
||||
|
||||
source:
|
||||
repoURL: https://github.com/YOUR_GITHUB_USERNAME/k8s-starter-pack.git
|
||||
repoURL: https://tea.ahmza.com/ahmza.com/vps-k8s.git
|
||||
targetRevision: main
|
||||
path: apps/longhorn
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ spec:
|
||||
project: default
|
||||
|
||||
source:
|
||||
repoURL: https://github.com/YOUR_GITHUB_USERNAME/k8s-starter-pack.git
|
||||
repoURL: https://tea.ahmza.com/ahmza.com/vps-k8s.git
|
||||
targetRevision: main
|
||||
path: apps/metallb
|
||||
|
||||
|
||||
Reference in New Issue
Block a user