mirror of
https://github.com/ghndrx/blog-manifest.git
synced 2026-02-10 06:54:59 +00:00
init git
This commit is contained in:
32
deployments/ghost-blog-deployment.yaml
Normal file
32
deployments/ghost-blog-deployment.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: ghost-blog
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: ghost-blog
|
||||
replicas: 1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: ghost-blog
|
||||
spec:
|
||||
containers:
|
||||
- name: ghost-blog
|
||||
image: ghost:3
|
||||
ports:
|
||||
- containerPort: 2368
|
||||
env:
|
||||
- name: database__client
|
||||
value: mysql
|
||||
- name: database__connection__host
|
||||
value: mysql-service
|
||||
- name: database__connection__user
|
||||
value: ghost
|
||||
- name: database__connection__password
|
||||
value: ghost
|
||||
- name: database__connection__database
|
||||
value: ghost
|
||||
|
||||
|
||||
35
deployments/mysql-deployment.yaml
Normal file
35
deployments/mysql-deployment.yaml
Normal file
@@ -0,0 +1,35 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: mysql
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: mysql
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: mysql
|
||||
spec:
|
||||
containers:
|
||||
- name: mysql
|
||||
image: mysql:5.7
|
||||
env:
|
||||
- name: MYSQL_ROOT_PASSWORD
|
||||
value: password
|
||||
- name: MYSQL_DATABASE
|
||||
value: ghost
|
||||
- name: MYSQL_USER
|
||||
value: ghost
|
||||
- name: MYSQL_PASSWORD
|
||||
value: password
|
||||
ports:
|
||||
- containerPort: 3306
|
||||
volumeMounts:
|
||||
- name: mysql-data
|
||||
mountPath: /var/lib/mysql
|
||||
volumes:
|
||||
- name: mysql-data
|
||||
configMap:
|
||||
name: mysql-data
|
||||
26
deployments/traefik-deployment.yaml
Normal file
26
deployments/traefik-deployment.yaml
Normal file
@@ -0,0 +1,26 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: traefik
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: traefik
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: traefik
|
||||
spec:
|
||||
containers:
|
||||
- name: traefik
|
||||
image: traefik:v2.3
|
||||
ports:
|
||||
- name: web
|
||||
containerPort: 80
|
||||
- name: websecure
|
||||
containerPort: 443
|
||||
- name: admin
|
||||
containerPort: 8080
|
||||
args:
|
||||
-
|
||||
Reference in New Issue
Block a user