Skip to content

Commit

Permalink
Fixing PVC issue for prod-base-sepolia resolver indexer
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Jan 22, 2025
1 parent baad2fc commit c594af4
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 10 deletions.
7 changes: 0 additions & 7 deletions devops/aws/consumers/base/resolver/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,4 @@ spec:
securityContext:
runAsUser: 0
runAsGroup: 0
volumeMounts:
- mountPath: /var/log/app
name: resolver-logs
restartPolicy: Always
volumes:
- name: resolver-logs
persistentVolumeClaim:
claimName: resolver-logs
2 changes: 1 addition & 1 deletion devops/aws/consumers/base/resolver/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Kustomization

resources:
- deployment.yaml
- pvc.yaml
# - pvc.yaml
- service.yaml

commonLabels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ spec:
- name: secrets-store-inline
mountPath: "/mnt/secrets"
readOnly: true
- mountPath: /var/log/app
name: resolver-logs
envFrom:
- secretRef:
name: prod-resolver-consumer-secrets
Expand All @@ -23,4 +25,7 @@ spec:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "prod-base-sepolia-prod-resolver-consumer-secrets"
secretProviderClass: "prod-base-sepolia-prod-resolver-consumer-secrets"
- name: resolver-logs
persistentVolumeClaim:
claimName: prod-base-sepolia-resolver-logs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ kind: Kustomization
resources:
- ../../../base/resolver
- secret-provider.yaml
- pvc.yaml

namePrefix: "prod-base-sepolia-"

Expand Down
11 changes: 11 additions & 0 deletions devops/aws/consumers/overlays/prod-base-sepolia/resolver/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: prod-base-sepolia-resolver-logs
spec:
storageClassName: gp2
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ resources:
- ../../base
- secret-provider.yaml

namePrefix: "prod-base-sepolia-"
namePrefix: "prod-"

patches:
- path: deployment-patch.yaml
Expand Down

0 comments on commit c594af4

Please sign in to comment.