INT 21h

Hi, I am Vladimir Smagin, SysAdmin, DevOps and barely good guy. Telegram Email / GIT / Микроблог / Thingiverse / GPG

HELM: generate certs for all hosts in ingress.tls

№ 10106 В разделе "Администрирование" от July 1st, 2019,

{{- if .Values.ingress.tls }}
  {{- range .Values.ingress.tls }}
      {{- $secretName := .secretName -}}
      {{- range .hosts }}
kind: Certificate
  name: {{ $fullName }}
    - dns01:
        provider: route53
      - {{ . }}
  commonName: ""
  - {{ . }}
    kind: ClusterIssuer
    name: letsencrypt
  secretName: {{ $secretName }}
    {{- end }}
  {{- end }}
{{- end }}

Нет комментариев »

Autocleaning docker registry

№ 10098 В разделе "Администрирование" от June 25th, 2019,

To remove old images (in my case images can’t be older 14 days) I used and included registry tools to collect garbage.

Make sure you run your registry with REGISTRY_STORAGE_DELETE_ENABLED=true

docker run -d -p -e "REGISTRY_STORAGE_DELETE_ENABLED=true" --restart always \
  --name docker-images-registry \
  -v /srv/registry/data:/var/lib/registry \
  -v /srv/registry/users:/auth/htpasswd registry:2

Now you can delete images

docker run --rm --link docker-images-registry anoxis/registry-cli \
  -r http://docker-images-registry:5000 --delete --keep-by-hours 336 \
  --keep-tags-like latest --digest-method=GET

Ok, use garbage collector

docker stop docker-images-registry

docker run --rm -v /srv/registry/data:/var/lib/registry \
  -v /srv/registry/users:/auth/htpasswd registry:2 \
  bin/registry garbage-collect /etc/docker/registry/config.yml

docker start docker-images-registry

Well done! Take a donut from a shelf.

Нет комментариев »

Kubernetes RabbitMQ operator

№ 9844 В разделах: Администрирование Программирование от March 19th, 2019,

YES! I made it! Written on Golang with operator-sdk.

Today operator working stable, documentation is coming.

Checkout code here (mirror)

Нет комментариев »


Fortune cookie: The prick of the engineer, Scott, Fell off from Saturnian rot. He went to the basement And made a replacement Of tungsten and plastic and snot.