Skip to content

Commit

Permalink
feat(*): add pc & resources (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
bbbmj authored and caicloud-bot committed Nov 6, 2019
1 parent 76b739f commit 8d96daf
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions release/infra-mongo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,19 @@ _config:
template:
type: template.caicloud.io/application
version: 1.0.0
version: "v0.0.5"
version: "v0.0.6"
controllers:
- containers:
- name: mongo
image: '[[ registry_library ]]/mongo:3.6.5'
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 500m
memory: 8Gi
requests:
cpu: 100m
memory: 200Mi
probe:
liveness:
handler:
Expand Down Expand Up @@ -57,6 +64,13 @@ _config:
- name: mongo-sidecar
image: '[[ registry_release ]]/mongo-k8s-sidecar:v0.0.3'
imagePullPolicy: IfNotPresent
resources:
limits:
cpu: 50m
memory: 200Mi
requests:
cpu: 10m
memory: 100Mi
env:
- name: MONGO_SIDECAR_POD_LABELS
value: "controller.caicloud.io/release=infra-mongo"
Expand All @@ -80,7 +94,7 @@ _config:
replica: 3
domain: mgo-cluster
pod:
priorityClassName: system-cluster-critical
priorityClassName: platform-system-critical
type: StatefulSet
volumes:
- name: mongo-storage
Expand Down

0 comments on commit 8d96daf

Please sign in to comment.