Rollout pods not able to find volume to mount with HPA #1916
Unanswered
guptadeepali39
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I have done the deployment in my AWS cluster with my application using argocd blue green deployment.
Also, I have applied HPA on it based on the target CPU utilization
Now, when the target increases and as per HPA it tries to create new pods, but in the new pods it is not able to find the volume and it crashes within seconds.
Here, I am using configmaps and mounting them as volumes in the rollout specs.
can someone please guide.
apiVersion: argoproj.io/v1alpha1
kind: Rollout
metadata:
name: test-deploy
annotations:
configmap.reloader.stakater.com/reload: "test-config"
spec:
replicas: 2
revisionHistoryLimit: 1
selector:
matchLabels:
app: test
template:
metadata:
labels:
app: test
spec:
containers:
- name: test-deploy
image: image
imagePullPolicy: Always
ports:
- containerPort: 9196
resources:
limits:
cpu: 1000m
requests:
cpu: 500m
volumeMounts:
- name: test-prop-yaml
mountPath: /home/soma/OneAPP/Onboarding/
volumes:
- name: test-prop-yaml
configMap:
name: mob-config
Beta Was this translation helpful? Give feedback.
All reactions