Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Task] VX-254: Pull resource setting out from yaml #228

Merged
merged 3 commits into from
Aug 8, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ spec:
name: docker-sock
- mountPath: /var/run/openvswitch/
name: ovs-data
resources:
requests:
cpu: {{ .Values.controller.tcpCPU }}
volumes:
- name: docker-sock
hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ spec:
name: ovs-sock
- mountPath: /tmp/
name: grpc-sock
resources:
requests:
cpu: {{ .Values.controller.unixCPU }}
volumes:
- name: docker-ns
hostPath:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ spec:
- --profiling
- --housekeeping_interval={{ .Values.controller.housekeeping_interval }}
- --disable_metrics=disk
resources:
requests:
cpu: {{ .Values.controller.cpu }}
terminationGracePeriodSeconds: 30
volumes:
- name: rootfs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ spec:
image: k8s.gcr.io/addon-resizer:1.7
resources:
requests:
cpu: 100m
memory: 30Mi
cpu: {{ .Values.controller.cpu }}
env:
- name: MY_POD_NAME
valueFrom:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ spec:
- --no-collector.wifi
- --no-collector.xfs
- --no-collector.zfs
resources:
requests:
cpu: {{ .Values.controller.cpu }}
hostNetwork: true

6 changes: 1 addition & 5 deletions deploy/helm/apps/charts/prometheus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,7 @@ spec:
name: config-volume
resources:
requests:
cpu: 100m
memory: 100Mi
limits:
cpu: 500m
memory: 2500Mi
cpu: {{ .Values.controller.cpu }}
volumes:
- emptyDir: {}
name: data
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
appVersion: "1.0"
description: A Helm chart for vortex-server
name: vortex-server
name: vortex
version: 0.1.0
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,13 @@ spec:
image: sdnvortex/vortex-portal:{{ .Values.controller.webappImageTag }}
ports:
- containerPort: 8080
resources:
requests:
cpu: {{ .Values.controller.portalCPU }}
- name: vortex-server
image: sdnvortex/vortex:{{ .Values.controller.apiserverImageTag }}
ports:
- containerPort: 7890
resources:
requests:
cpu: {{ .Values.controller.serverCPU }}
12 changes: 10 additions & 2 deletions deploy/helm/config/development.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# vortex/deploy/helm/apps
apps:
# vortex/deploy/helm/apps/charts/vortex-server
vortex-server:
vortex:
controller:
replicaCount: 1
nodeSelector:
Expand All @@ -10,6 +10,8 @@ apps:
controller:
apiserverImageTag: v0.1.10
webappImageTag: v0.1.0
portalCPU: 50m
serverCPU: 100m
service:
ports:
apiserverNodePort: 32326
Expand All @@ -18,36 +20,42 @@ apps:
network-controller:
controller:
imageTag: v0.4.0
tcpCPU: 50m
unixCPU: 50m
# vortex/deploy/helm/apps/charts/prometheus
prometheus:
controller:
replicaCount: 1
imageTag: v2.2.1
scrapeInterval: 5s
retention: 1h
cpu: 50m
service:
nodePort: true
# vortex/deploy/helm/apps/charts/prometheus/charts/cadvisor
cadvisor:
controller:
imageTag: v0.27.4
housekeeping_interval: 10s
cpu: 100m
# vortex/deploy/helm/apps/charts/prometheus/charts/kube-state-metrics
kube-state-metrics:
controller:
imageTag: v1.3.1
cpu: 50m
# vortex/deploy/helm/apps/charts/prometheus/charts/node-exporter
node-exporter:
controller:
imageTag: v1.0.1
cpu: 50m

# vortex/deploy/helm/services
services:
# vortex/deploy/helm/services/charts/mongodb
mongodb:
controller:
replicaCount: 1
cpu: 100m
cpu: 50m
image:
tag: 4.1.1-xenial
pvc:
Expand Down
14 changes: 11 additions & 3 deletions deploy/helm/config/productaion.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# vortex/deploy/helm/apps
apps:
# vortex/deploy/helm/apps/charts/vortex-server
vortex-server:
# vortex/deploy/helm/apps/charts/vortex
vortex:
controller:
replicaCount: 1
nodeSelector:
Expand All @@ -10,6 +10,8 @@ apps:
controller:
apiserverImageTag: v0.1.10
webappImageTag: v0.1.0
portalCPU: 200m
serverCPU: 100m
service:
ports:
apiserverNodePort: 32326
Expand All @@ -18,36 +20,42 @@ apps:
network-controller:
controller:
imageTag: v0.4.0
tcpCPU: 100m
unixCPU: 100m
# vortex/deploy/helm/apps/charts/prometheus
prometheus:
controller:
replicaCount: 1
imageTag: v2.2.1
scrapeInterval: 5s
retention: 1h
cpu: 100m
service:
nodePort: false
# vortex/deploy/helm/apps/charts/prometheus/charts/cadvisor
cadvisor:
controller:
imageTag: v0.27.4
housekeeping_interval: 10s
cpu: 200m
# vortex/deploy/helm/apps/charts/prometheus/charts/kube-state-metrics
kube-state-metrics:
controller:
imageTag: v1.3.1
cpu: 100m
# vortex/deploy/helm/apps/charts/prometheus/charts/node-exporter
node-exporter:
controller:
imageTag: v1.0.1
cpu: 100m

# vortex/deploy/helm/services
services:
# vortex/deploy/helm/services/charts/mongodb
mongodb:
controller:
replicaCount: 1
cpu: 100m
cpu: 200m
image:
tag: 4.1.1-xenial
pvc:
Expand Down
14 changes: 11 additions & 3 deletions deploy/helm/config/testing.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# vortex/deploy/helm/apps
apps:
# vortex/deploy/helm/apps/charts/vortex-server
vortex-server:
# vortex/deploy/helm/apps/charts/vortex
vortex:
controller:
replicaCount: 1
nodeSelector:
Expand All @@ -10,6 +10,8 @@ apps:
controller:
apiserverImageTag: v0.1.10
webappImageTag: v0.1.0
portalCPU: 50m
serverCPU: 100m
service:
ports:
apiserverNodePort: 32326
Expand All @@ -18,36 +20,42 @@ apps:
network-controller:
controller:
imageTag: v0.4.0
tcpCPU: 50m
unixCPU: 50m
# vortex/deploy/helm/apps/charts/prometheus
prometheus:
controller:
replicaCount: 1
imageTag: v2.2.1
scrapeInterval: 5s
retention: 1h
cpu: 50m
service:
nodePort: true
# vortex/deploy/helm/apps/charts/prometheus/charts/cadvisor
cadvisor:
controller:
imageTag: v0.27.4
housekeeping_interval: 10s
cpu: 100m
# vortex/deploy/helm/apps/charts/prometheus/charts/kube-state-metrics
kube-state-metrics:
controller:
imageTag: v1.3.1
cpu: 20m
# vortex/deploy/helm/apps/charts/prometheus/charts/node-exporter
node-exporter:
controller:
imageTag: v1.0.1
cpu: 20m

# vortex/deploy/helm/services
services:
# vortex/deploy/helm/services/charts/mongodb
mongodb:
controller:
replicaCount: 1
cpu: 100m
cpu: 50m
image:
tag: 4.1.1-xenial
pvc:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
volumeMounts:
- name: mongodb
mountPath: /data/db
resources:
requests:
cpu: {{ .Values.controller.cpu }}
volumeClaimTemplates:
- metadata:
name: mongodb
Expand Down