Files
allmende/k8s/base/kustomization.yaml
T
nilsandClaude Sonnet 5.5 e2a095a5d4 k8s: pin the image by digest as well as by tag
The registry's digest for 0cfb59c, checked by pulling it from the registry
(the local digest differed from the one the registry stores).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AeFqV96dVeBX94inzcgZKw
2026-11-18 13:11:17 +01:00

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
# Optional: the web UI on a public name. Read the note in ingress.yaml first.
# - ingress.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: 0cfb59c # 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:bfcc8462709091a9f5d0fe73ee6b5298194879ffdd5a3110c919362c3e1e0d4b
labels:
- pairs:
app.kubernetes.io/name: allmende
app.kubernetes.io/part-of: allmende
includeSelectors: false