1. apiVersion: v1
    2. kind: Pod
    3. metadata:
    4. name: httpget-readinessprobe
    5. namespace: default
    6. spec:
    7. containers:
    8. - name: httpget-pod
    9. image: nginx
    10. ports:
    11. - name: nginx-port
    12. containerPort: 80
    13. readinessProbe:
    14. httpGet:
    15. path: /index.html
    16. port: nginx-port
    17. initialDelaySeconds: 3