Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
42 lines
1.5 KiB
YAML
42 lines
1.5 KiB
YAML
# A public Allmende node (a bootstrap node) for your own cluster.
|
|
#
|
|
# kubectl apply -k k8s/base (or: kustomize build k8s/base | kubectl apply -f -)
|
|
#
|
|
# Before you apply: set the image below and the public name in config.env.
|
|
# See k8s/README.md for the whole setup (router, DNS, first start).
|
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
|
kind: Kustomization
|
|
|
|
namespace: allmende
|
|
|
|
resources:
|
|
- namespace.yaml
|
|
- statefulset.yaml
|
|
- service-p2p.yaml
|
|
- service-http.yaml
|
|
# The web UI on a public name (Traefik IngressRoute). Comment it out to keep the UI private.
|
|
- ingressroute.yaml
|
|
|
|
configMapGenerator:
|
|
- name: allmende-config
|
|
envs:
|
|
- config.env
|
|
|
|
# Build the image from the Dockerfile in the repository root, push it to a
|
|
# registry your cluster can pull from, and name it here.
|
|
images:
|
|
- name: allmende
|
|
newName: git.stinnesbeck.com/nils/allmende
|
|
newTag: 6e37a2c # the commit the image was built from; `make image` pushes and prints the next one
|
|
# The digest is what the cluster pulls (the tag above is for people: a tag can
|
|
# be overwritten in the registry, a digest cannot). Change both together; get
|
|
# the digest after pushing with: podman pull --policy=always <image>:<tag> &&
|
|
# podman image inspect --format '{{.Digest}}' <image>:<tag>
|
|
digest: sha256:ebb4a513551f876a7655e7bb0e8f338cd7dc4fd00048ee3a9fcd28e4d040a00e
|
|
|
|
labels:
|
|
- pairs:
|
|
app.kubernetes.io/name: allmende
|
|
app.kubernetes.io/part-of: allmende
|
|
includeSelectors: false
|