From f64a69e4289458ebed7b2e8ef4de66fd9ae4da71 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 5 Oct 2023 09:04:32 -0700 Subject: [PATCH] Delete jafner-dev --- jafner-dev/Ingress.yaml | 58 ------------- jafner-dev/cert-manager/Issuer.yaml | 31 ------- jafner-dev/cert-manager/Secret.yaml | 9 --- jafner-dev/dndtools/Deployment.yaml | 23 ------ jafner-dev/dndtools/Service.yaml | 13 --- jafner-dev/hello/Deployment.yaml | 20 ----- jafner-dev/hello/Service.yaml | 13 --- jafner-dev/hello2/Deployment.yaml | 20 ----- jafner-dev/hello2/Service.yaml | 13 --- jafner-dev/wordpress/Deployment.yaml | 81 ------------------- jafner-dev/wordpress/Kustomization.yaml | 9 --- .../wordpress/PersistentVolumeClaim.yaml | 27 ------- jafner-dev/wordpress/Secret.yaml | 8 -- jafner-dev/wordpress/Service.yaml | 28 ------- 14 files changed, 353 deletions(-) delete mode 100644 jafner-dev/Ingress.yaml delete mode 100644 jafner-dev/cert-manager/Issuer.yaml delete mode 100644 jafner-dev/cert-manager/Secret.yaml delete mode 100644 jafner-dev/dndtools/Deployment.yaml delete mode 100644 jafner-dev/dndtools/Service.yaml delete mode 100644 jafner-dev/hello/Deployment.yaml delete mode 100644 jafner-dev/hello/Service.yaml delete mode 100644 jafner-dev/hello2/Deployment.yaml delete mode 100644 jafner-dev/hello2/Service.yaml delete mode 100644 jafner-dev/wordpress/Deployment.yaml delete mode 100644 jafner-dev/wordpress/Kustomization.yaml delete mode 100644 jafner-dev/wordpress/PersistentVolumeClaim.yaml delete mode 100644 jafner-dev/wordpress/Secret.yaml delete mode 100644 jafner-dev/wordpress/Service.yaml diff --git a/jafner-dev/Ingress.yaml b/jafner-dev/Ingress.yaml deleted file mode 100644 index 5fb74da..0000000 --- a/jafner-dev/Ingress.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/jafner-dev/cert-manager/Issuer.yaml b/jafner-dev/cert-manager/Issuer.yaml deleted file mode 100644 index d0fdb15..0000000 --- a/jafner-dev/cert-manager/Issuer.yaml +++ /dev/null @@ -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 diff --git a/jafner-dev/cert-manager/Secret.yaml b/jafner-dev/cert-manager/Secret.yaml deleted file mode 100644 index c23487e..0000000 --- a/jafner-dev/cert-manager/Secret.yaml +++ /dev/null @@ -1,9 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: web-ssl -type: kubernetes.io/tls -stringData: - tls.key: "" - tls.crt: "" \ No newline at end of file diff --git a/jafner-dev/dndtools/Deployment.yaml b/jafner-dev/dndtools/Deployment.yaml deleted file mode 100644 index 1fe6216..0000000 --- a/jafner-dev/dndtools/Deployment.yaml +++ /dev/null @@ -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 diff --git a/jafner-dev/dndtools/Service.yaml b/jafner-dev/dndtools/Service.yaml deleted file mode 100644 index c25c1eb..0000000 --- a/jafner-dev/dndtools/Service.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: "v1" -kind: "Service" -metadata: - name: "dndtools" - namespace: "default" -spec: - ports: - - protocol: "TCP" - name: web - port: 80 - selector: - app: "dndtools" diff --git a/jafner-dev/hello/Deployment.yaml b/jafner-dev/hello/Deployment.yaml deleted file mode 100644 index b0e349f..0000000 --- a/jafner-dev/hello/Deployment.yaml +++ /dev/null @@ -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 diff --git a/jafner-dev/hello/Service.yaml b/jafner-dev/hello/Service.yaml deleted file mode 100644 index 46279f3..0000000 --- a/jafner-dev/hello/Service.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: "v1" -kind: "Service" -metadata: - name: "hello" - namespace: "default" -spec: - ports: - - protocol: "TCP" - name: hello - port: 8080 - selector: - app: "hello" diff --git a/jafner-dev/hello2/Deployment.yaml b/jafner-dev/hello2/Deployment.yaml deleted file mode 100644 index 9686526..0000000 --- a/jafner-dev/hello2/Deployment.yaml +++ /dev/null @@ -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 diff --git a/jafner-dev/hello2/Service.yaml b/jafner-dev/hello2/Service.yaml deleted file mode 100644 index aef70c5..0000000 --- a/jafner-dev/hello2/Service.yaml +++ /dev/null @@ -1,13 +0,0 @@ ---- -apiVersion: "v1" -kind: "Service" -metadata: - name: "hello2" - namespace: "default" -spec: - ports: - - protocol: "TCP" - name: hello2 - port: 8080 - selector: - app: "hello2" diff --git a/jafner-dev/wordpress/Deployment.yaml b/jafner-dev/wordpress/Deployment.yaml deleted file mode 100644 index beec8fd..0000000 --- a/jafner-dev/wordpress/Deployment.yaml +++ /dev/null @@ -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 diff --git a/jafner-dev/wordpress/Kustomization.yaml b/jafner-dev/wordpress/Kustomization.yaml deleted file mode 100644 index 18e807c..0000000 --- a/jafner-dev/wordpress/Kustomization.yaml +++ /dev/null @@ -1,9 +0,0 @@ -#secretGenerator: -#- name: mysql-pass -# literals: -# - password=E2UVUasvVoiJEUxuBUiyM8B3iS3dmy5hZEwYBBuC - -#resources: -# - Deployment.yaml -# - Service.yaml -# - PersistentVolumeClaim.yaml \ No newline at end of file diff --git a/jafner-dev/wordpress/PersistentVolumeClaim.yaml b/jafner-dev/wordpress/PersistentVolumeClaim.yaml deleted file mode 100644 index c1abf17..0000000 --- a/jafner-dev/wordpress/PersistentVolumeClaim.yaml +++ /dev/null @@ -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 diff --git a/jafner-dev/wordpress/Secret.yaml b/jafner-dev/wordpress/Secret.yaml deleted file mode 100644 index afad76e..0000000 --- a/jafner-dev/wordpress/Secret.yaml +++ /dev/null @@ -1,8 +0,0 @@ ---- -apiVersion: v1 -kind: Secret -metadata: - name: mysql-pass -type: Opaque -data: - password: E2UVUasvVoiJEUxuBUiyM8B3iS3dmy5hZEwYBBuC \ No newline at end of file diff --git a/jafner-dev/wordpress/Service.yaml b/jafner-dev/wordpress/Service.yaml deleted file mode 100644 index 84b776d..0000000 --- a/jafner-dev/wordpress/Service.yaml +++ /dev/null @@ -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