contrib/k8s: YAML brevity via references, add min. resource requests

- Add resources for deployments
- Add readiness probe for master
- Use YAML references for easier maintenance/readability
parent 40635754
...@@ -62,11 +62,18 @@ spec: ...@@ -62,11 +62,18 @@ spec:
- containerPort: 5557 - containerPort: 5557
name: overlord-port name: overlord-port
livenessProbe: livenessProbe:
httpGet: httpGet: &health
path: /health path: /health
port: 5557 port: 5557
initialDelaySeconds: 16 initialDelaySeconds: 15
timeoutSeconds: 1 timeoutSeconds: 1
readinessProbe:
httpGet: *health
initialDelaySeconds: 5
timeoutSeconds: 5
periodSeconds: 5
resources:
requests: { cpu: 500m, memory: 512Mi }
volumeMounts: volumeMounts:
- name: connectors - name: connectors
mountPath: /etc/dex-connectors mountPath: /etc/dex-connectors
......
...@@ -40,17 +40,17 @@ spec: ...@@ -40,17 +40,17 @@ spec:
- containerPort: 5556 - containerPort: 5556
name: worker-port name: worker-port
readinessProbe: readinessProbe:
httpGet: httpGet: &health
path: /health path: /health
port: 5556 port: 5556
timeoutSeconds: 1 timeoutSeconds: 1
periodSeconds: 2 periodSeconds: 2
livenessProbe: livenessProbe:
httpGet: httpGet: *health
path: /health
port: 5556
initialDelaySeconds: 15 initialDelaySeconds: 15
timeoutSeconds: 1 timeoutSeconds: 1
resources:
requests: { cpu: 200m, memory: 256Mi }
# In production, you will likely want to include your own trusted # In production, you will likely want to include your own trusted
# /etc/ca-certificates and /etc/ssl in your container. # /etc/ca-certificates and /etc/ssl in your container.
volumeMounts: volumeMounts:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment