Skip to content

Commit

Permalink
add yaml file for scamper json output (#184)
Browse files Browse the repository at this point in the history
* Create etl-gardener-scamper.yml

* Update etl-gardener-scamper.yml

* Update persistent-volumes.yml

* Update etl-gardener-scamper.yml

* Update etl-gardener-scamper.yml

* Update persistent-volumes.yml

* Update etl-gardener-scamper.yml

* Update etl-gardener-scamper.yml
  • Loading branch information
yachang authored Sep 30, 2019
1 parent 6586ea2 commit 18caefd
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
93 changes: 93 additions & 0 deletions k8s/data-processing-cluster/deployments/etl-gardener-scamper.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: etl-gardener-scamper
namespace: default
spec:
replicas: 1
selector:
matchLabels:
# Used to match pre-existing pods that may be affected during updates.
run: etl-gardener-scamper
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-scamper
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.
- name: TASKFILE_BUCKET
value: "archive-measurement-lab"
- name: START_DATE
value: "20190604"
- name: DATE_SKIP # Should be 0 for normal operation
value: "0"
- name: TASK_FILE_SKIP # Should be 0 for normal operation
value: "0"
- name: EXPERIMENT
value: "ndt/traceroute"
- name: DATASET
value: "batch"
- name: FINAL_DATASET
value: "base_tables"
- name: QUEUE_BASE
value: "etl-scamper-batch-"
- name: NUM_QUEUES
value: "4"

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"

nodeSelector:
gardener-node: "true"

volumes:
- name: scamper-storage
persistentVolumeClaim:
claimName: gardener-scamper-disk0
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,16 @@ spec:
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: gardener-scamper-disk0
annotations:
volume.beta.kubernetes.io/storage-class: "slow"
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi

0 comments on commit 18caefd

Please sign in to comment.