Skip to content

Commit

Permalink
change container spec in kustomize
Browse files Browse the repository at this point in the history
  • Loading branch information
juunini committed Oct 27, 2024
1 parent 146d420 commit b2e8925
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 7 deletions.
6 changes: 3 additions & 3 deletions kustomize/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ spec:
resources:
requests:
memory: "2Gi"
cpu: "1"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1"
memory: "4Gi"
cpu: "2"
volumeMounts:
- name: creds
mountPath: /etc/gcp
Expand Down
4 changes: 2 additions & 2 deletions kustomize/postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ spec:
memory: "2Gi"
cpu: "1"
limits:
memory: "2Gi"
cpu: "1"
memory: "4Gi"
cpu: "2"
ports:
- containerPort: 5432
env:
Expand Down
9 changes: 8 additions & 1 deletion kustomize/redis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@ spec:
resources:
requests:
memory: "1Gi"
cpu: "1"
cpu: "500m"
limits:
memory: "2Gi"
cpu: "1"
ports:
- containerPort: 6379
volumeMounts:
- mountPath: /data
name: redis
volumes:
- name: redis
persistentVolumeClaim:
claimName: redis-pvc

---

Expand Down
37 changes: 36 additions & 1 deletion kustomize/volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,39 @@ spec:
accessModes:
- ReadWriteOnce
hostPath:
path: /data
path: /data

---

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: redis-pvc
namespace: cherrypick
spec:
storageClassName: ""
volumeName: redis-pv
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi

---

apiVersion: v1
kind: PersistentVolume
metadata:
name: redis-pv
namespace: cherrypick
spec:
storageClassName: ""
claimRef:
name: redis-pvc
namespace: cherrypick
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /redis

0 comments on commit b2e8925

Please sign in to comment.