Name: gerrit-0 Namespace: sf Priority: 0 Service Account: default Node: minikube/192.168.49.2 Start Time: Wed, 10 Jun 2026 06:01:57 -0400 Labels: app=sf apps.kubernetes.io/pod-index=0 controller-revision-hash=gerrit-996c47c8c run=gerrit statefulset.kubernetes.io/pod-name=gerrit-0 Annotations: Status: Running SeccompProfile: RuntimeDefault IP: 10.244.0.6 IPs: IP: 10.244.0.6 Controlled By: StatefulSet/gerrit Init Containers: gerrit-init: Container ID: cri-o://c8bfe81fd5e900481494c3888991b733d71ababdb93798e9712b623ff7a254f5 Image: quay.io/software-factory/gerrit:3.6.4-8 Image ID: quay.io/software-factory/gerrit@sha256:b84fd03757c34cf3656d1c7e3c0187cea399a4f1a312166ab0c7c132b2b155b6 Port: Host Port: SeccompProfile: RuntimeDefault Command: sh -c #!/bin/bash set -ex export HOME=/gerrit # The /dev/./urandom is not a typo. https://stackoverflow.com/questions/58991966/what-java-security-egd-option-is-for JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom -Xms${JVM_XMS} -Xmx${JVM_XMX}" echo "Initializing Gerrit site ..." java ${JAVA_OPTIONS} -jar /var/gerrit/bin/gerrit.war init -d ~/ --batch --no-auto-start --skip-plugins echo "Installing plugins ..." cp -u /var/gerrit-plugins/* ~/plugins cat << EOF > ~/.gitconfig [user] name = SF initial configurator email = admin@${FQDN} [gitreview] username = admin [push] default = simple EOF echo "Ensure admin user" # This command is noop if admin user already exists pynotedb create-admin-user --email "admin@${FQDN}" --pubkey "${GERRIT_ADMIN_SSH_PUB}" \ --all-users ~/git/All-Users.git --scheme gerrit echo "Setting Gerrit config file ..." git config -f ~/etc/gerrit.config --replace-all gerrit.canonicalWebUrl "https://gerrit.${FQDN}" git config -f ~/etc/gerrit.config --replace-all auth.type "DEVELOPMENT_BECOME_ANY_ACCOUNT" git config -f ~/etc/gerrit.config --replace-all sshd.listenaddress "*:29418" git config -f ~/etc/gerrit.config --unset-all httpd.listenUrl git config -f ~/etc/gerrit.config --add httpd.listenUrl "proxy-https://*:8080/" git config -f ~/etc/gerrit.config --replace-all user.email "gerrit@${FQDN}" git config -f ~/etc/gerrit.config --replace-all sendemail.enable "false" echo "Install the ready.sh script" cat << EOF > ~/ready.sh echo "Waiting for httpd" curl --fail http://localhost:8080/config/server/version echo "Waiting for sshd" python3 -c 'import socket; socket.socket(socket.AF_INET, socket.SOCK_STREAM).connect(("localhost", 29418))' EOF chmod +x ~/ready.sh State: Terminated Reason: Completed Exit Code: 0 Started: Wed, 10 Jun 2026 06:02:08 -0400 Finished: Wed, 10 Jun 2026 06:02:24 -0400 Ready: True Restart Count: 0 Limits: cpu: 1 memory: 768Mi Requests: cpu: 100m memory: 512Mi Environment: GERRIT_ADMIN_SSH_PUB: Optional: false FQDN: sfop.me JVM_XMS: 256m JVM_XMX: 512m Mounts: /gerrit from gerrit (rw) Containers: gerrit: Container ID: cri-o://5a90126b3ecb28321cb2ac239e9e9afff66eaf0ec721c11801299b8caaf77313 Image: quay.io/software-factory/gerrit:3.6.4-8 Image ID: quay.io/software-factory/gerrit@sha256:b84fd03757c34cf3656d1c7e3c0187cea399a4f1a312166ab0c7c132b2b155b6 Ports: 8080/TCP (gerrit-httpd), 29418/TCP (gerrit-sshd) Host Ports: 0/TCP (gerrit-httpd), 0/TCP (gerrit-sshd) SeccompProfile: RuntimeDefault Command: sh -c #!/bin/bash set -ex # The /dev/./urandom is not a typo. https://stackoverflow.com/questions/58991966/what-java-security-egd-option-is-for JAVA_OPTIONS="-Djava.security.egd=file:/dev/./urandom -Xms${JVM_XMS} -Xmx${JVM_XMX}" echo "Set local git config for gerrit admin" cat << EOF > ~/.gitconfig [user] name = SF initial configurator email = admin@${FQDN} [gitreview] username = admin [push] default = simple EOF echo "Setup .ssh/config to allow container exec of 'ssh gerrit'" mkdir -p ~/.ssh cat << EOF > ~/.ssh/config Host gerrit User admin Hostname ${HOSTNAME} Port 29418 IdentityFile ~/.ssh/gerrit_admin EOF echo "Copy Gerrit Admin SSH keys on filesystem" echo "${GERRIT_ADMIN_SSH}" > ~/.ssh/gerrit_admin chmod 0600 ~/.ssh/gerrit_admin unset GERRIT_ADMIN_SSH echo "Running Gerrit ..." exec java ${JAVA_OPTIONS} -jar /var/gerrit/bin/gerrit.war daemon -d ~/ State: Running Started: Wed, 10 Jun 2026 06:02:24 -0400 Ready: True Restart Count: 0 Limits: cpu: 1 memory: 768Mi Requests: cpu: 100m memory: 512Mi Liveness: exec [bash /gerrit/ready.sh] delay=5s timeout=5s period=20s #success=1 #failure=20 Readiness: exec [bash /gerrit/ready.sh] delay=0s timeout=5s period=10s #success=1 #failure=20 Startup: exec [bash /gerrit/ready.sh] delay=5s timeout=2s period=20s #success=1 #failure=10 Environment: HOME: /gerrit FQDN: sfop.me JVM_XMS: 128m JVM_XMX: 512m GERRIT_ADMIN_SSH: Optional: false Mounts: /gerrit from gerrit (rw) managesf-resources: Container ID: cri-o://fe5b4476b22a28c6cd778d60cdb06564010a924edc4fe369aa2e7ea693db6e2c Image: quay.io/software-factory/sf-op-busybox:1.5-20250925-1 Image ID: quay.io/software-factory/sf-op-busybox@sha256:4e6b0fb62d16b4dc6b9d6b24b67c1ff871a2bf124ec0958b00f861b72ce6f56f Port: Host Port: SeccompProfile: RuntimeDefault Command: sh -c #!/bin/sh if [ "${HOME}" == "/" ]; then echo "HOME can not be / dir!" exit 1 fi mkdir -p ~/.ssh chmod 0700 ~/.ssh echo "${SF_ADMIN_SSH}" > ~/.ssh/id_rsa chmod 0400 ~/.ssh/id_rsa cat << EOF > ~/.ssh/config Host gerrit User admin Hostname ${GERRIT_SSHD_PORT_29418_TCP_ADDR} Port ${GERRIT_SSHD_SERVICE_PORT_GERRIT_SSHD} IdentityFile ~/.ssh/id_rsa StrictHostKeyChecking no EOF sleep inf State: Running Started: Wed, 10 Jun 2026 06:02:38 -0400 Ready: True Restart Count: 0 Limits: cpu: 500m memory: 256Mi Requests: cpu: 100m memory: 128Mi Environment: HOME: /tmp FQDN: sfop.me SF_ADMIN_SSH: Optional: false Mounts: /etc/managesf from managesf-resources-config-vol (rw) /usr/share/managesf from managesf-resources-tooling-vol (rw) Conditions: Type Status PodReadyToStartContainers True Initialized True Ready True ContainersReady True PodScheduled True Volumes: gerrit: Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace) ClaimName: gerrit-gerrit-0 ReadOnly: false managesf-resources-config-vol: Type: ConfigMap (a volume populated by a ConfigMap) Name: managesf-resources-config-map Optional: false managesf-resources-tooling-vol: Type: ConfigMap (a volume populated by a ConfigMap) Name: managesf-resources-tooling-config-map Optional: false QoS Class: Burstable Node-Selectors: Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s node.kubernetes.io/unreachable:NoExecute op=Exists for 300s Events: Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedScheduling 6m38s default-scheduler 0/1 nodes are available: pod has unbound immediate PersistentVolumeClaims. preemption: 0/1 nodes are available: 1 Preemption is not helpful for scheduling. Normal Scheduled 6m36s default-scheduler Successfully assigned sf/gerrit-0 to minikube Normal Pulling 6m36s kubelet spec.initContainers{gerrit-init}: Pulling image "quay.io/software-factory/gerrit:3.6.4-8" Normal Pulled 6m25s kubelet spec.initContainers{gerrit-init}: Successfully pulled image "quay.io/software-factory/gerrit:3.6.4-8" in 11.068s (11.068s including waiting). Image size: 643241119 bytes. Normal Created 6m25s kubelet spec.initContainers{gerrit-init}: Created container: gerrit-init Normal Started 6m25s kubelet spec.initContainers{gerrit-init}: Started container gerrit-init Normal Pulled 6m9s kubelet spec.containers{gerrit}: Container image "quay.io/software-factory/gerrit:3.6.4-8" already present on machine Normal Created 6m9s kubelet spec.containers{gerrit}: Created container: gerrit Normal Started 6m9s kubelet spec.containers{gerrit}: Started container gerrit Normal Pulling 6m9s kubelet spec.containers{managesf-resources}: Pulling image "quay.io/software-factory/sf-op-busybox:1.5-20250925-1" Normal Pulled 5m56s kubelet spec.containers{managesf-resources}: Successfully pulled image "quay.io/software-factory/sf-op-busybox:1.5-20250925-1" in 13.434s (13.434s including waiting). Image size: 844013494 bytes. Normal Created 5m55s kubelet spec.containers{managesf-resources}: Created container: managesf-resources Normal Started 5m55s kubelet spec.containers{managesf-resources}: Started container managesf-resources