Skip to content

Commit

Permalink
add secrets demo
Browse files Browse the repository at this point in the history
  • Loading branch information
kelseyhightower committed Mar 9, 2016
1 parent 0fd0145 commit 2a94638
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
22 changes: 22 additions & 0 deletions kubecon-eu-2016/demo/pods/config.js
@@ -0,0 +1,22 @@
var config;

config = {
test: {
url: 'http://localhost:2368',
database: {
client: 'sqlite3',
connection: {
filename: '/var/lib/ghost/data/ghost.db'
}
},
server: {
host: '127.0.0.1',
port: '2368'
},
paths: {
contentPath: '/var/lib/ghost'
},
}
}

module.exports = config;
20 changes: 20 additions & 0 deletions kubecon-eu-2016/demo/pods/ghost.yaml
@@ -0,0 +1,20 @@
apiVersion: v1
kind: Pod
metadata:
name: ghost
spec:
containers:
- name: "ghost"
image: "kelseyhightower/ghost:0.7.8"
env:
- name: "NODE_ENV"
value: "test"
- name: "GHOST_CONFIG"
value: "/etc/ghost/config.js"
volumeMounts:
- name: "ghost"
mountPath: "/etc/ghost"
volumes:
- name: "ghost"
secret:
secretName: "ghost-test"

0 comments on commit 2a94638

Please sign in to comment.