Skip to content

Commit f0cee30

Browse files
Update kubernetes.md
1 parent 11c42f4 commit f0cee30

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

kubernetes.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,45 @@ oras pull ghcr.io/stuttgart-things/static:v1
682682

683683
</details>
684684

685+
<details><summary>BUILDAH</summary>
686+
687+
```bash
688+
# RUN DEBUG CONTAINER
689+
kubectl run buildah-debug --namespace registry --image=quay.io/buildah/stable:v1 --restart=Never --overrides='
690+
{
691+
"apiVersion": "v1",
692+
"spec": {
693+
"containers": [{
694+
"name": "buildah",
695+
"image": "quay.io/buildah/stable:v1",
696+
"securityContext": {
697+
"privileged": true
698+
},
699+
"stdin": true,
700+
"tty": true
701+
}]
702+
}
703+
}' --stdin --tty --attach
704+
```
705+
706+
```
707+
# USE ALIAS FOR PULLED IMAGE
708+
buildah pull python:3.11-slim
709+
buildah tag python:3.11-slim registry-docker-registry.registry.svc.cluster.local:5000/python:3.11-slim
710+
buildah --tls-verify=false push registry-docker-registry.registry.svc.cluster.local:5000/python:3.11-slim
711+
712+
buildah login registry-docker-registry.registry.svc.cluster.local:5000 --tls-verify=false
713+
714+
# change alias in /etc/containers/registries.conf.d/000-shortnames.conf
715+
# e.g.
716+
"python" = "registry-docker-registry.registry.svc.cluster.local:5000/python"
717+
718+
curl -u admin:<PW> -X GET http://registry-docker-registry.registry.svc.cluster.local:5000/v2/_catalog
719+
```
720+
721+
</details>
722+
723+
685724
<details><summary>GOLDILOCKS, VPA + PROMETHEUS</summary>
686725
687726
## DEPLOY VPA

0 commit comments

Comments
 (0)