using ingress no need for traefik at this time.

This commit is contained in:
gregory hendrickson
2023-01-26 13:07:57 -08:00
parent 3042c20794
commit f65b9ae2bd
5 changed files with 17 additions and 79 deletions

View File

@@ -7,11 +7,15 @@ spec:
replicas: 1
selector:
matchLabels:
app: mysql
app: ghost
tier: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: mysql
app: ghost
tier: mysql
spec:
containers:
- name: mysql

View File

@@ -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

View File

@@ -1,16 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: ghost-blog-service
namespace: blog
name: ghost-blog
namespace: default
spec:
selector:
app: ghost-blog
ports:
- name: http
- protocol: TCP
port: 80
targetPort: 2368
- name: https
port: 443
targetPort: 2368
type: ClusterIP
targetPort: 2368

View File

@@ -1,13 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: mysql-service
namespace: blog
name: mysql
namespace: default
labels:
app: ghost
spec:
selector:
app: ghost-blog
tier: mysql
ports:
- port: 3306
- port: 3306
selector:
app: ghost
tier: mysql
clusterIP: None

View File

@@ -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