diff --git a/devops/aws/consumers/base/resolver/kustomization.yaml b/devops/aws/consumers/base/resolver/kustomization.yaml index 8e39353..9d644aa 100644 --- a/devops/aws/consumers/base/resolver/kustomization.yaml +++ b/devops/aws/consumers/base/resolver/kustomization.yaml @@ -3,7 +3,6 @@ kind: Kustomization resources: - deployment.yaml - # - pvc.yaml - service.yaml commonLabels: diff --git a/devops/aws/consumers/overlays/dev-base-mainnet/resolver/deployment-patch.yaml b/devops/aws/consumers/overlays/dev-base-mainnet/resolver/deployment-patch.yaml index f769fba..5252683 100644 --- a/devops/aws/consumers/overlays/dev-base-mainnet/resolver/deployment-patch.yaml +++ b/devops/aws/consumers/overlays/dev-base-mainnet/resolver/deployment-patch.yaml @@ -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 @@ -23,4 +25,7 @@ spec: driver: secrets-store.csi.k8s.io readOnly: true volumeAttributes: - secretProviderClass: "dev-base-mainnet-dev-resolver-consumer-secrets" \ No newline at end of file + secretProviderClass: "dev-base-mainnet-dev-resolver-consumer-secrets" + - name: resolver-logs + persistentVolumeClaim: + claimName: dev-base-mainnet-resolver-logs diff --git a/devops/aws/consumers/overlays/dev-base-mainnet/resolver/kustomization.yaml b/devops/aws/consumers/overlays/dev-base-mainnet/resolver/kustomization.yaml index 640d8ff..bc63e5e 100644 --- a/devops/aws/consumers/overlays/dev-base-mainnet/resolver/kustomization.yaml +++ b/devops/aws/consumers/overlays/dev-base-mainnet/resolver/kustomization.yaml @@ -4,6 +4,7 @@ kind: Kustomization resources: - ../../../base/resolver - secret-provider.yaml + - pvc.yaml namePrefix: "dev-base-mainnet-" diff --git a/devops/aws/consumers/base/resolver/pvc.yaml b/devops/aws/consumers/overlays/dev-base-mainnet/resolver/pvc.yaml similarity index 80% rename from devops/aws/consumers/base/resolver/pvc.yaml rename to devops/aws/consumers/overlays/dev-base-mainnet/resolver/pvc.yaml index 1d5504b..d31a569 100644 --- a/devops/aws/consumers/base/resolver/pvc.yaml +++ b/devops/aws/consumers/overlays/dev-base-mainnet/resolver/pvc.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: PersistentVolumeClaim metadata: - name: resolver-logs + name: dev-base-mainnet-resolver-logs spec: storageClassName: gp2 accessModes: diff --git a/devops/aws/consumers/overlays/dev-base-sepolia/resolver/deployment-patch.yaml b/devops/aws/consumers/overlays/dev-base-sepolia/resolver/deployment-patch.yaml index 1af63ec..4895184 100644 --- a/devops/aws/consumers/overlays/dev-base-sepolia/resolver/deployment-patch.yaml +++ b/devops/aws/consumers/overlays/dev-base-sepolia/resolver/deployment-patch.yaml @@ -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 @@ -23,4 +25,7 @@ spec: driver: secrets-store.csi.k8s.io readOnly: true volumeAttributes: - secretProviderClass: "dev-base-sepolia-resolver-consumer-secrets" \ No newline at end of file + secretProviderClass: "dev-base-sepolia-resolver-consumer-secrets" + - name: resolver-logs + persistentVolumeClaim: + claimName: dev-base-sepolia-resolver-logs \ No newline at end of file diff --git a/devops/aws/consumers/overlays/dev-base-sepolia/resolver/kustomization.yaml b/devops/aws/consumers/overlays/dev-base-sepolia/resolver/kustomization.yaml index 26ce54f..75e6d9b 100644 --- a/devops/aws/consumers/overlays/dev-base-sepolia/resolver/kustomization.yaml +++ b/devops/aws/consumers/overlays/dev-base-sepolia/resolver/kustomization.yaml @@ -4,6 +4,7 @@ kind: Kustomization resources: - ../../../base/resolver - secret-provider.yaml + - pvc.yaml namePrefix: "dev-base-sepolia-" diff --git a/devops/aws/consumers/overlays/dev-base-sepolia/resolver/pvc.yaml b/devops/aws/consumers/overlays/dev-base-sepolia/resolver/pvc.yaml new file mode 100644 index 0000000..eefc6c7 --- /dev/null +++ b/devops/aws/consumers/overlays/dev-base-sepolia/resolver/pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: dev-base-sepolia-resolver-logs +spec: + storageClassName: gp2 + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi \ No newline at end of file diff --git a/devops/aws/consumers/overlays/prod-base-mainnet/resolver/deployment-patch.yaml b/devops/aws/consumers/overlays/prod-base-mainnet/resolver/deployment-patch.yaml index a29431f..a2ba3a1 100644 --- a/devops/aws/consumers/overlays/prod-base-mainnet/resolver/deployment-patch.yaml +++ b/devops/aws/consumers/overlays/prod-base-mainnet/resolver/deployment-patch.yaml @@ -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 @@ -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 \ No newline at end of file diff --git a/devops/aws/consumers/overlays/prod-base-mainnet/resolver/kustomization.yaml b/devops/aws/consumers/overlays/prod-base-mainnet/resolver/kustomization.yaml index 39e629d..e45754e 100644 --- a/devops/aws/consumers/overlays/prod-base-mainnet/resolver/kustomization.yaml +++ b/devops/aws/consumers/overlays/prod-base-mainnet/resolver/kustomization.yaml @@ -4,6 +4,7 @@ kind: Kustomization resources: - ../../../base/resolver - secret-provider.yaml + - pvc.yaml namePrefix: "prod-base-mainnet-" diff --git a/devops/aws/consumers/overlays/prod-base-mainnet/resolver/pvc.yaml b/devops/aws/consumers/overlays/prod-base-mainnet/resolver/pvc.yaml new file mode 100644 index 0000000..3f9979e --- /dev/null +++ b/devops/aws/consumers/overlays/prod-base-mainnet/resolver/pvc.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: prod-base-mainnet-resolver-logs +spec: + storageClassName: gp2 + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 2Gi \ No newline at end of file