Skip to content

Commit

Permalink
Fixing resolver pvc deployment scripts for all environments
Browse files Browse the repository at this point in the history
  • Loading branch information
leboiko committed Jan 22, 2025
1 parent c594af4 commit 2a8888b
Show file tree
Hide file tree
Showing 10 changed files with 43 additions and 4 deletions.
1 change: 0 additions & 1 deletion devops/aws/consumers/base/resolver/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ kind: Kustomization

resources:
- deployment.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: dev-resolver-consumer-secrets
Expand All @@ -23,4 +25,7 @@ spec:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "dev-base-mainnet-dev-resolver-consumer-secrets"
secretProviderClass: "dev-base-mainnet-dev-resolver-consumer-secrets"
- name: resolver-logs
persistentVolumeClaim:
claimName: dev-base-mainnet-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: "dev-base-mainnet-"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: resolver-logs
name: dev-base-mainnet-resolver-logs
spec:
storageClassName: gp2
accessModes:
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: resolver-consumer-secrets
Expand All @@ -23,4 +25,7 @@ spec:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "dev-base-sepolia-resolver-consumer-secrets"
secretProviderClass: "dev-base-sepolia-resolver-consumer-secrets"
- name: resolver-logs
persistentVolumeClaim:
claimName: dev-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: "dev-base-sepolia-"

Expand Down
11 changes: 11 additions & 0 deletions devops/aws/consumers/overlays/dev-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: dev-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 @@ -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-mainnet-resolver-consumer-secrets
Expand All @@ -24,3 +26,6 @@ spec:
readOnly: true
volumeAttributes:
secretProviderClass: "prod-base-mainnet-prod-mainnet-resolver-consumer-secrets"
- name: resolver-logs
persistentVolumeClaim:
claimName: prod-base-mainnet-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-mainnet-"

Expand Down
11 changes: 11 additions & 0 deletions devops/aws/consumers/overlays/prod-base-mainnet/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-mainnet-resolver-logs
spec:
storageClassName: gp2
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 2Gi

0 comments on commit 2a8888b

Please sign in to comment.