mirror of
https://github.com/ghndrx/blog-manifest.git
synced 2026-02-10 06:54:59 +00:00
using ingress no need for traefik at this time.
This commit is contained in:
@@ -7,11 +7,15 @@ spec:
|
|||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: mysql
|
app: ghost
|
||||||
|
tier: mysql
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: mysql
|
app: ghost
|
||||||
|
tier: mysql
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: mysql
|
- name: mysql
|
||||||
|
|||||||
@@ -1,47 +0,0 @@
|
|||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: traefik-proxy
|
|
||||||
namespace: blog
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: traefik-proxy
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: traefik-proxy
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: traefik-proxy
|
|
||||||
image: traefik:latest
|
|
||||||
ports:
|
|
||||||
- containerPort: 80
|
|
||||||
- containerPort: 443
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "256Mi"
|
|
||||||
cpu: "250m"
|
|
||||||
limits:
|
|
||||||
memory: "512Mi"
|
|
||||||
cpu: "500m"
|
|
||||||
volumeMounts:
|
|
||||||
- name: traefik-config
|
|
||||||
mountPath: /etc/traefik
|
|
||||||
- name: traefik-data
|
|
||||||
mountPath: /data/traefik
|
|
||||||
args:
|
|
||||||
- --api
|
|
||||||
- --entrypoints.web.address=:80
|
|
||||||
- --entrypoints.websecure.address=:443
|
|
||||||
- --certificatesresolvers.myresolver.acme.tlschallenge=true
|
|
||||||
- --certificatesresolvers.myresolver.acme.email=example@example.com
|
|
||||||
- --certificatesresolvers.myresolver.acme.storage=/data/traefik/acme.json
|
|
||||||
volumes:
|
|
||||||
- name: traefik-config
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: traefik-pvc
|
|
||||||
- name: traefik-data
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: traefik-pvc
|
|
||||||
@@ -1,16 +1,12 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: ghost-blog-service
|
name: ghost-blog
|
||||||
namespace: blog
|
namespace: default
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app: ghost-blog
|
app: ghost-blog
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
targetPort: 2368
|
targetPort: 2368
|
||||||
- name: https
|
|
||||||
port: 443
|
|
||||||
targetPort: 2368
|
|
||||||
type: ClusterIP
|
|
||||||
|
|||||||
@@ -1,13 +1,14 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: mysql-service
|
name: mysql
|
||||||
namespace: blog
|
namespace: default
|
||||||
labels:
|
labels:
|
||||||
app: ghost
|
app: ghost
|
||||||
spec:
|
spec:
|
||||||
selector:
|
|
||||||
app: ghost-blog
|
|
||||||
tier: mysql
|
|
||||||
ports:
|
ports:
|
||||||
- port: 3306
|
- port: 3306
|
||||||
|
selector:
|
||||||
|
app: ghost
|
||||||
|
tier: mysql
|
||||||
|
clusterIP: None
|
||||||
@@ -1,16 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: traefik-proxy-service
|
|
||||||
namespace: blog
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: traefik-proxy
|
|
||||||
ports:
|
|
||||||
- name: http
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
- name: https
|
|
||||||
port: 443
|
|
||||||
targetPort: 443
|
|
||||||
type: ClusterIP
|
|
||||||
Reference in New Issue
Block a user