Permalink
Browse files

update script now running on kubernetes

  • Loading branch information...
mwylde committed Mar 20, 2017
1 parent 1b028eb commit 09ad005992caeb053d85fa912f6ab020933e5a44
Showing with 10 additions and 10 deletions.
  1. +6 −5 cronjob.yaml
  2. +2 −2 pub/index.html
  3. +2 −3 upload.sh
View
@@ -3,21 +3,22 @@ kind: CronJob
metadata:
name: hnhiring-get-data
spec:
# schedule: "0,15,30,45 13,14,15,16,17,18,19,20,21,22,23 * * *"
schedule: "*/5 * * * *"
schedule: "0,15,30,45 13,14,15,16,17,18,19,20,21,22,23 * * *"
jobTemplate:
spec:
template:
spec:
containers:
- name: hnhiring-get-data
image: "gcr.io/micahw-com/github-mwylde-hnhiring:cb33257c04ea230d7cf33390a8e858c8928ec297"
image: "gcr.io/micahw-com/github-mwylde-hnhiring:1b028eb38dfb7b5f1a617ae5dcebe15ebf11dccb"
env:
- name: REDIS_HOST
value: "pub-redis-18045.us-central1-1-1.gce.garantiadata.com"
- name: REDIS_PORT
value: "18045"
- name: REDIS_PASS
value: "wCol4+Dz2TmIUcJQ"
valueFrom:
secretKeyRef:
name: redis-pass
key: redis-pass
restartPolicy: Never
# concurrencyPolicy: Forbid
View
@@ -2,8 +2,8 @@
<html>
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<script type="text/javascript" src="/scripts.js?59677095"></script>
<link rel="stylesheet" href="/styles.css?883591472" />
<script type="text/javascript" src="/scripts.js?396555526"></script>
<link rel="stylesheet" href="/styles.css?979793083" />
<title>HN Hiring</title>
<script type='text/javascript'>
//<![CDATA[
View
@@ -1,3 +1,2 @@
rsync -arvz -e ssh pub/ micahw.com:/var/www/hnhiring/pub
rsync -argz -e ssh get_data.rb micahw.com:/var/www/hnhiring/
gsutil defacl set public-read gs://www.hnhiring.me
gsutil rsync -R pub/ gs://www.hnhiring.me

0 comments on commit 09ad005

Please sign in to comment.