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

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

View File

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

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