Add Ghost Template

This commit is contained in:
galal-hussein 2016-04-01 02:13:15 +02:00
parent a45179fa86
commit 3090f0c7ea
8 changed files with 172 additions and 0 deletions

View File

@ -0,0 +1,5 @@
# Ghost
Ghost is a platform dedicated to one thing: Publishing. It's beautifully designed, completely customisable and completely Open Source. Ghost allows you to write and publish your own blog, giving you the tools to make it easy and even fun to do.
This is a Ghost deployment on Kubernetes environment, using MySQL as backend store for the blogging paltform.

View File

@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
labels:
name: ghost-lb
name: ghost-lb
spec:
ports:
- port: 80
targetPort: 2368
selector:
name: ghost
app: ghost
type: LoadBalancer

View File

@ -0,0 +1,30 @@
apiVersion: v1
kind: Pod
metadata:
name: ghost
labels:
name: ghost
app: ghost
spec:
restartPolicy: Always
containers:
- image: "husseingalal/ghost"
name: "ghost"
ports:
- containerPort: 2368
name: ghost
env:
- name: GHOST_USER
value: ${ghost_db_user}
- name: GHOST_PASSWORD
value: ${ghost_db_pass}
- name: GHOST_DB
value: ${ghost_db}
- name: GHOST_URL
value: ${ghost_url}
volumeMounts:
- name: "ghost-ephemeral-storage"
mountPath: /var/lib/ghost
volumes:
- name: "ghost-ephemeral-storage"
emptyDir: {}

View File

@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
labels:
name: mysql
name: mysql
spec:
ports:
- port: 3306
selector:
name: mysql

View File

@ -0,0 +1,36 @@
apiVersion: v1
kind: Pod
metadata:
name: mysql
labels:
name: mysql
spec:
containers:
- image: mysql
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
value: ${mysql_root_pass}
- name: MYSQL_DATABASE
value: ${ghost_db}
- name: MYSQL_USER
value: ${ghost_db_user}
- name: MYSQL_PASSWORD
value: ${ghost_db_pass}
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- name: mysql-vol
mountPath: /var/lib/mysql
livenessProbe:
tcpSocket:
port: "mysql"
initialDelaySeconds: 5
timeoutSeconds: 1
readinessProbe:
exec:
command: ["mysqladmin", "status", "-p${mysql_root_pass}"]
volumes:
- name: mysql-vol
emptyDir: {}

View File

@ -0,0 +1,30 @@
.catalog:
name: Ghost
version: 0.7.8-rancher1
description: Open source publishing platform
questions:
- variable: "mysql_root_pass"
label: "MySQL root password"
required: true
type: "password"
- variable: "ghost_db"
label: "Ghost database name on mysql"
required: true
type: "string"
default: "ghost"
- variable: "ghost_db_user"
label: "Ghost database username"
required: true
type: "string"
default: "ghostuser"
- variable: "ghost_db_pass"
label: "Ghost database password"
required: true
type: "password"
default: "ghostpass"
description: "default password is ghostpass"
- variable: "ghost_url"
label: "Ghost url"
required: true
type: "string"
default: "http://example-ghost.com"

View File

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 86.5 86.5" enable-background="new 0 0 86.5 86.5" xml:space="preserve">
<g opacity="0.7">
<rect x="3.8" y="67.1" fill="#3D515B" width="31.7" height="15.9"/>
<rect x="51.3" y="67.1" fill="#3D515B" width="31.7" height="15.9"/>
<rect x="3.7" y="35.4" fill="#3D515B" width="79.3" height="15.9"/>
<rect x="3.8" y="3.7" fill="#3D515B" width="47.6" height="15.9"/>
<rect x="67.2" y="3.7" fill="#3D515B" width="15.9" height="15.9"/>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
<g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 893 B

View File

@ -0,0 +1,4 @@
name: Ghost
description: Open source publishing platform
version: 0.7.8-rancher1
category: Blogging