Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maksim-paskal/warmup
https://github.com/maksim-paskal/warmup
Last synced: 5 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maksim-paskal/warmup
- Owner: maksim-paskal
- License: apache-2.0
- Created: 2020-07-17T03:28:07.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-18T18:18:20.000Z (almost 3 years ago)
- Last Synced: 2024-06-21T08:21:35.497Z (7 months ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Warmup kubernetes pod
Standart rediness probe https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-readiness-probes - runs on the container during its whole lifecycle.If your kubernetes cluster has no enabled feature gates StartupProbe - you can add sidecar container to your pod to make readiness probes while main container answers HTTP 200 - if main container answers correctly - probes will ends
```
- name: warmup
image: paskalmaksim/warmup:v0.0.7
imagePullPolicy: IfNotPresent
resources:
requests:
cpu: 10m
memory: 30Mi
command:
- warmup
- --url=http://127.0.0.1:3000
- --result.file=/tmp/readinessProbeStatus
- --http.timeout=1s
- --try.timeout=1s
readinessProbe:
httpGet:
path: /ready
port: 12380
initialDelaySeconds: 1
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: 12380
initialDelaySeconds: 10
periodSeconds: 10
```