Explorar el Código

HUE-8888 [k8s] Adding missing resource requirement for nginx and postgres

Romain hace 6 años
padre
commit
26fe7ecd55

+ 4 - 0
tools/kubernetes/helm/hue/templates/deployment-hue.yaml

@@ -48,6 +48,10 @@ spec:
         imagePullPolicy: {{ .Values.image.pullPolicy }}
         ports:
           - containerPort: 80
+        resources:
+          requests:
+            # memory: "64Mi"
+            cpu: "20m"
         volumeMounts:
         - name: nginx-config
           mountPath: /etc/nginx/sites-available/hue

+ 4 - 0
tools/kubernetes/helm/hue/templates/replicationcontroller-postgres.yaml

@@ -24,6 +24,10 @@ spec:
               value: /var/lib/postgresql/data/pgdata
           ports:
             - containerPort: 5432
+          resources:
+            requests:
+              # memory: "350Mi"
+              cpu: "20m"
           volumeMounts:
             - mountPath: /var/lib/postgresql/data
               name: postgres-data