Compare languages | Module pod-reloader: usage

Tracking all changes in all attached resources: mounted as volumes or used in environment values.

Слежение за всеми изменениями во всех подключенных ресурсах: смонтированных как volume или используемых в переменных окружения.

yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx annotations: pod-reloader.deckhouse.io/auto: “true” spec: template: spec: containers:

  • name: nginx env:
  • name: SECRET_WORD valueFrom: secretKeyRef: name: nginx-secret-value key: extra volumeMounts:
  • name: pages mountPath: “/usr/share/nginx/pages” volumes:
  • name: pages configMap: name: nginx-pages — apiVersion: v1 kind: Secret type: Opaque metadata: name: nginx-secret-value — apiVersion: v1 kind: ConfigMap metadata: name: nginx-config

yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment labels: app: nginx annotations: pod-reloader.deckhouse.io/auto: “true” spec: template: spec: containers:

  • name: nginx env:
  • name: SECRET_WORD valueFrom: secretKeyRef: name: nginx-secret-value key: extra volumeMounts:
  • name: pages mountPath: “/usr/share/nginx/pages” volumes:
  • name: pages configMap: name: nginx-pages — apiVersion: v1 kind: Secret type: Opaque metadata: name: nginx-secret-value — apiVersion: v1 kind: ConfigMap metadata: name: nginx-config

Tracking changes in specific resources.

Слежение за изменениями только в конкретных ресурсах.

yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment annotations: pod-reloader.deckhouse.io/search: “true” spec: template: spec: containers:

  • name: nginx env:
  • name: SECRET_WORD valueFrom: secretKeyRef: name: nginx-secret-value key: extra — apiVersion: v1 kind: Secret type: Opaque metadata: name: nginx-secret-value annotations: pod-reloader.deckhouse.io/match: “true”

yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment annotations: pod-reloader.deckhouse.io/search: “true” spec: template: spec: containers:

  • name: nginx env:
  • name: SECRET_WORD valueFrom: secretKeyRef: name: nginx-secret-value key: extra — apiVersion: v1 kind: Secret type: Opaque metadata: name: nginx-secret-value annotations: pod-reloader.deckhouse.io/match: “true”

Tracking changes in resources from the list.

Слежение за изменениями в ресурсах из списка.

yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment annotations: pod-reloader.deckhouse.io/configmap-reload: “nginx-config,nginx-pages” spec: template: spec: containers:

  • name: nginx volumeMounts:
  • name: pages mountPath: “/usr/share/nginx/pages”
  • name: config mountPath: “/etc/nginx/templates” volumes:
  • name: pages configMap: name: nginx-pages
  • name: config configMap: name: nginx-config — apiVersion: v1 kind: ConfigMap metadata: name: nginx-pages — apiVersion: v1 kind: ConfigMap metadata: name: nginx-config

yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx-deployment annotations: pod-reloader.deckhouse.io/configmap-reload: “nginx-config,nginx-pages” spec: template: spec: containers:

  • name: nginx volumeMounts:
  • name: pages mountPath: “/usr/share/nginx/pages”
  • name: config mountPath: “/etc/nginx/templates” volumes:
  • name: pages configMap: name: nginx-pages
  • name: config configMap: name: nginx-config — apiVersion: v1 kind: ConfigMap metadata: name: nginx-pages — apiVersion: v1 kind: ConfigMap metadata: name: nginx-config