Delete jafner-dev

This commit is contained in:
Joey Hafner 2023-10-05 09:04:32 -07:00
parent 0e29ca9bc9
commit f64a69e428
14 changed files with 0 additions and 353 deletions

View File

@ -1,58 +0,0 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: web-ingress
annotations:
kubernetes.io/ingress.class: gce
kubernetes.io/ingress.allow-http: "true"
kubernetes.io/ingress.global-static-ip-name: web-ip
cert-manager.io/issuer: letsencrypt-production
spec:
tls:
- secretName: web-ssl
hosts:
- hello.jafner.dev
- hello2.jafner.dev
- 5e.jafner.dev
- wordpress.jafner.dev
rules:
- host: "hello.jafner.dev"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: hello
port:
number: 8080
- host: "hello2.jafner.dev"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: hello2
port:
number: 8080
- host: "5e.jafner.dev"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: dndtools
port:
number: 80
- host: "wordpress.jafner.dev"
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: wordpress
port:
number: 80

View File

@ -1,31 +0,0 @@
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-staging
spec:
acme:
server: https://acme-staging-v02.api.letsencrypt.org/directory
email: jafner425@gmail.com
privateKeySecretRef:
name: letsencrypt-staging
solvers:
- http01:
ingress:
name: web-ingress
---
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-production
spec:
acme:
server: https://acme-v02.api.letsencrypt.org/directory
email: jafner425@gmail.com
privateKeySecretRef:
name: letsencrypt-production
solvers:
- http01:
ingress:
name: web-ingress

View File

@ -1,9 +0,0 @@
---
apiVersion: v1
kind: Secret
metadata:
name: web-ssl
type: kubernetes.io/tls
stringData:
tls.key: ""
tls.crt: ""

View File

@ -1,23 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: dndtools
spec:
selector:
matchLabels:
app: dndtools
replicas: 1
template:
metadata:
labels:
app: dndtools
spec:
containers:
- name: dndtools
image: jafner/5etools-docker
env:
- name: SOURCE
value: "GITHUB-NOIMG"
ports:
- containerPort: 80

View File

@ -1,13 +0,0 @@
---
apiVersion: "v1"
kind: "Service"
metadata:
name: "dndtools"
namespace: "default"
spec:
ports:
- protocol: "TCP"
name: web
port: 80
selector:
app: "dndtools"

View File

@ -1,20 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello
spec:
selector:
matchLabels:
app: hello
replicas: 1
template:
metadata:
labels:
app: hello
spec:
containers:
- name: hello
image: gcr.io/google-samples/hello-app:1.0
ports:
- containerPort: 8080

View File

@ -1,13 +0,0 @@
---
apiVersion: "v1"
kind: "Service"
metadata:
name: "hello"
namespace: "default"
spec:
ports:
- protocol: "TCP"
name: hello
port: 8080
selector:
app: "hello"

View File

@ -1,20 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello2
spec:
selector:
matchLabels:
app: hello2
replicas: 1
template:
metadata:
labels:
app: hello2
spec:
containers:
- name: hello2
image: gcr.io/google-samples/hello-app:1.0
ports:
- containerPort: 8080

View File

@ -1,13 +0,0 @@
---
apiVersion: "v1"
kind: "Service"
metadata:
name: "hello2"
namespace: "default"
spec:
ports:
- protocol: "TCP"
name: hello2
port: 8080
selector:
app: "hello2"

View File

@ -1,81 +0,0 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress-mysql
labels:
app: wordpress
spec:
selector:
matchLabels:
app: wordpress
tier: mysql
strategy:
type: Recreate
template:
metadata:
labels:
app: wordpress
tier: mysql
spec:
containers:
- image: mysql:5.6
name: mysql
env:
- name: MYSQL_ROOT_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-pass
key: password
ports:
- containerPort: 3306
name: mysql
volumeMounts:
- name: mysql-persistent-storage
mountPath: /var/lib/mysql
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: mysql-pv-claim
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: wordpress
labels:
app: wordpress
spec:
selector:
matchLabels:
app: wordpress
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: wordpress
tier: frontend
spec:
containers:
- image: wordpress:4.8-apache
name: wordpress
env:
- name: WORDPRESS_DB_HOST
value: wordpress-mysql
- name: WORDPRESS_DB_PASSWORD
valueFrom:
secretKeyRef:
name: mysql-pass
key: password
ports:
- containerPort: 80
name: wordpress
volumeMounts:
- name: wordpress-persistent-storage
mountPath: /var/www/html
volumes:
- name: wordpress-persistent-storage
persistentVolumeClaim:
claimName: wp-pv-claim

View File

@ -1,9 +0,0 @@
#secretGenerator:
#- name: mysql-pass
# literals:
# - password=E2UVUasvVoiJEUxuBUiyM8B3iS3dmy5hZEwYBBuC
#resources:
# - Deployment.yaml
# - Service.yaml
# - PersistentVolumeClaim.yaml

View File

@ -1,27 +0,0 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-pv-claim
labels:
app: wordpress
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: wp-pv-claim
labels:
app: wordpress
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 20Gi

View File

@ -1,8 +0,0 @@
---
apiVersion: v1
kind: Secret
metadata:
name: mysql-pass
type: Opaque
data:
password: E2UVUasvVoiJEUxuBUiyM8B3iS3dmy5hZEwYBBuC

View File

@ -1,28 +0,0 @@
---
apiVersion: v1
kind: Service
metadata:
name: wordpress-mysql
labels:
app: wordpress
spec:
ports:
- port: 3306
selector:
app: wordpress
tier: mysql
---
apiVersion: v1
kind: Service
metadata:
name: wordpress
labels:
app: wordpress
spec:
ports:
- port: 80
selector:
app: wordpress
tier: frontend
type: ClusterIP