Skip to content

Commit

Permalink
update script now running on kubernetes
Browse files Browse the repository at this point in the history
  • Loading branch information
mwylde committed Mar 20, 2017
1 parent 1b028eb commit 09ad005
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
11 changes: 6 additions & 5 deletions cronjob.yaml
Expand Up @@ -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
4 changes: 2 additions & 2 deletions pub/index.html
Expand Up @@ -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[
Expand Down
5 changes: 2 additions & 3 deletions upload.sh
@@ -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.