-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #156 from m-lab/sandbox-tcpinfo
Add tcpinfo config
- Loading branch information
Showing
13 changed files
with
256 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 99 additions & 0 deletions
99
k8s/data-processing-cluster/deployments/etl-gardener-tcpinfo.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
name: etl-gardener-tcpinfo | ||
namespace: default | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
# Used to match pre-existing pods that may be affected during updates. | ||
run: etl-gardener-tcpinfo | ||
strategy: | ||
rollingUpdate: | ||
maxSurge: 1 | ||
maxUnavailable: 1 | ||
type: RollingUpdate | ||
# Pod template. | ||
template: | ||
metadata: | ||
labels: | ||
# Note: run=etl-gardener-server should match a service config with a | ||
# public IP and port so that it is publicly accessible. | ||
run: etl-gardener-tcpinfo | ||
annotations: | ||
# Tell prometheus service discovery to collect metrics from the containers. | ||
prometheus.io/scrape: 'true' | ||
spec: | ||
# When container receives SIGTERM, it begins a new checkpoint. This can | ||
# take longer than the default grace period of 30s. | ||
terminationGracePeriodSeconds: 300 | ||
|
||
# Place the pod into the Guaranteed QoS by setting equal resource | ||
# requests and limits for *all* containers in the pod. | ||
# For more background, see: | ||
# https://github.com/kubernetes/community/blob/master/contributors/design-proposals/resource-qos.md | ||
containers: | ||
- image: gcr.io/{{GCLOUD_PROJECT}}/github-m-lab-etl-gardener:{{GIT_COMMIT}} | ||
name: etl-gardener | ||
env: | ||
- name: GARDENER_SERVICE | ||
value: "true" | ||
- name: GIT_COMMIT | ||
value: "{{GIT_COMMIT}}" | ||
- name: PROJECT | ||
value: "{{GCLOUD_PROJECT}}" | ||
# NOTE: We read archives from the public archive for all projects. | ||
# TODO: Update when we address https://github.com/m-lab/dev-tracker/issues/369 | ||
- name: TASKFILE_BUCKET | ||
value: "pusher-{{GCLOUD_PROJECT}}" # This will work for sandbox/staging, but prod should use archive-measurement-lab. | ||
- name: START_DATE | ||
value: "20190329" | ||
- name: DATE_SKIP # Should be 0 for normal operation | ||
value: "{{DATE_SKIP}}" | ||
- name: TASK_FILE_SKIP # Should be 0 for normal operation | ||
value: "{{TASK_FILE_SKIP}}" | ||
- name: EXPERIMENT | ||
value: "ndt/tcpinfo" | ||
- name: DATASET | ||
value: "batch" | ||
- name: FINAL_DATASET | ||
value: "base_tables" | ||
- name: QUEUE_BASE | ||
value: "etl-tcpinfo-batch-" | ||
- name: NUM_QUEUES | ||
value: "2" | ||
|
||
ports: | ||
- name: prometheus-port | ||
containerPort: 9090 | ||
- name: service-port | ||
containerPort: 8080 | ||
|
||
livenessProbe: | ||
httpGet: | ||
path: /alive | ||
port: service-port | ||
initialDelaySeconds: 30 | ||
periodSeconds: 60 | ||
|
||
resources: | ||
requests: | ||
memory: "3Gi" | ||
cpu: "1" | ||
limits: | ||
memory: "3Gi" | ||
cpu: "1" | ||
|
||
volumeMounts: | ||
- mountPath: /volume-claim | ||
name: tcpinfo-storage | ||
|
||
nodeSelector: | ||
gardener-node: "true" | ||
|
||
volumes: | ||
- name: tcpinfo-storage | ||
persistentVolumeClaim: | ||
claimName: gardener-tcpinfo-disk0 | ||
|
14 changes: 14 additions & 0 deletions
14
k8s/data-processing-cluster/services/etl-gardener-tcpinfo-service.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: etl-gardener-tcpinfo-service | ||
namespace: default | ||
spec: | ||
ports: | ||
- port: 8080 | ||
protocol: TCP | ||
targetPort: 8080 | ||
selector: | ||
run: etl-gardener-tcpinfo | ||
sessionAffinity: None | ||
type: LoadBalancer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.