--- apiVersion: apps/v1 kind: Deployment metadata: name: hello-world namespace: hello-world spec: replicas: 2 selector: matchLabels: app: hello-world template: metadata: labels: app: hello-world spec: containers: - name: nginx image: nginx:alpine ports: - containerPort: 80 # Add a custom index page lifecycle: postStart: exec: command: ["/bin/sh", "-c", "echo '
Deployed via ArgoCD at '$(date)'
' > /usr/share/nginx/html/index.html"] ...