From a0d6733e195bc04a78e6994ee0c978f8bb6c73ad Mon Sep 17 00:00:00 2001 From: Max Resnick Date: Sun, 21 Aug 2022 10:07:24 -0700 Subject: updating api versions, fixing kustomize --- grumpy/static-files/Kube-descriptor.yaml | 5 ---- grumpy/static-files/base/kustomization.yaml | 25 ++++++++++++++++ grumpy/static-files/base/static-files-deploy.yaml | 34 ++++++++++++++++++++++ grumpy/static-files/base/static-files-ing.yaml | 28 ++++++++++++++++++ grumpy/static-files/base/static-files-svc.yaml | 14 +++++++++ grumpy/static-files/kustomization.yaml | 25 ---------------- grumpy/static-files/static-files-deploy.yaml | 34 ---------------------- grumpy/static-files/static-files-ing.yaml | 11 ------- grumpy/static-files/static-files-svc.yaml | 14 --------- .../static-files-test-connection-pod.yaml | 13 --------- 10 files changed, 101 insertions(+), 102 deletions(-) delete mode 100644 grumpy/static-files/Kube-descriptor.yaml create mode 100644 grumpy/static-files/base/kustomization.yaml create mode 100644 grumpy/static-files/base/static-files-deploy.yaml create mode 100644 grumpy/static-files/base/static-files-ing.yaml create mode 100644 grumpy/static-files/base/static-files-svc.yaml delete mode 100644 grumpy/static-files/kustomization.yaml delete mode 100644 grumpy/static-files/static-files-deploy.yaml delete mode 100644 grumpy/static-files/static-files-ing.yaml delete mode 100644 grumpy/static-files/static-files-svc.yaml delete mode 100644 grumpy/static-files/static-files-test-connection-pod.yaml (limited to 'grumpy/static-files') diff --git a/grumpy/static-files/Kube-descriptor.yaml b/grumpy/static-files/Kube-descriptor.yaml deleted file mode 100644 index 9813f55..0000000 --- a/grumpy/static-files/Kube-descriptor.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -appVersion: "1.0" -description: A Helm chart for Kubernetes -name: static-files -version: 0.1.0 diff --git a/grumpy/static-files/base/kustomization.yaml b/grumpy/static-files/base/kustomization.yaml new file mode 100644 index 0000000..6d1eee5 --- /dev/null +++ b/grumpy/static-files/base/kustomization.yaml @@ -0,0 +1,25 @@ +# Labels to add to all resources and selectors. +commonLabels: + app.kubernetes.io/instance: static-files + app.kubernetes.io/name: static-files + app.kubernetes.io/version: "1.0" + +# Images modify the tags for images without +# creating patches. +images: +- name: static-files + newName: registry.gitlab.com/grumps/ofmax/prod + newTag: latest + +# Value of this field is prepended to the +# names of all resources +namePrefix: static-files + +# List of resource files that kustomize reads, modifies +# and emits as a YAML string +resources: +- static-files-deploy.yaml +- static-files-ing.yaml +- static-files-svc.yaml +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization diff --git a/grumpy/static-files/base/static-files-deploy.yaml b/grumpy/static-files/base/static-files-deploy.yaml new file mode 100644 index 0000000..f89e7d7 --- /dev/null +++ b/grumpy/static-files/base/static-files-deploy.yaml @@ -0,0 +1,34 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: static-files +spec: + replicas: 1 + selector: + matchLabels: + app.kubernetes.io/instance: static-files + app.kubernetes.io/name: static-files + template: + metadata: + labels: + app.kubernetes.io/instance: static-files + app.kubernetes.io/name: static-files + spec: + containers: + - image: static-files + livenessProbe: + httpGet: + path: / + port: http + name: static-files + ports: + - containerPort: 8080 + name: http + protocol: TCP + readinessProbe: + httpGet: + path: / + port: http + imagePullSecrets: + - name: gitlabsec + serviceAccountName: default diff --git a/grumpy/static-files/base/static-files-ing.yaml b/grumpy/static-files/base/static-files-ing.yaml new file mode 100644 index 0000000..f0f05eb --- /dev/null +++ b/grumpy/static-files/base/static-files-ing.yaml @@ -0,0 +1,28 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + annotations: + certmanager.k8s.io/cluseterissuer: letsencrypt-prod + ingress.kubernetes.io/ssl-redirect: "true" + kubernetes.io/ingress.class: traefik + traefik.ingress.kubernetes.io/frontend-entry-points: http,https + traefik.ingress.kubernetes.io/redirect-entry-point: https + traefik.ingress.kubernetes.io/redirect-permanent: "true" + name: blog +spec: + rules: + - host: ofmax.li + http: + paths: + - backend: + service: + name: blog + port: + number: 8080 + pathType: Prefix + path: / + tls: + - hosts: + - www.ofmax.li + - ofmax.li + secretName: ofmax-li-sec diff --git a/grumpy/static-files/base/static-files-svc.yaml b/grumpy/static-files/base/static-files-svc.yaml new file mode 100644 index 0000000..8096a60 --- /dev/null +++ b/grumpy/static-files/base/static-files-svc.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: static-files +spec: + ports: + - name: http + port: 8080 + protocol: TCP + targetPort: http + selector: + app.kubernetes.io/instance: static-files + app.kubernetes.io/name: static-files + type: ClusterIP diff --git a/grumpy/static-files/kustomization.yaml b/grumpy/static-files/kustomization.yaml deleted file mode 100644 index 10f862e..0000000 --- a/grumpy/static-files/kustomization.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# Labels to add to all resources and selectors. -commonLabels: - app.kubernetes.io/instance: static-files - app.kubernetes.io/managed-by: Tiller - app.kubernetes.io/name: static-files - app.kubernetes.io/version: "1.0" - helm.sh/chart: static-files-0.1.0 - -# Images modify the tags for images without -# creating patches. -images: -- {} -- name: busybox - -# Value of this field is prepended to the -# names of all resources -namePrefix: static-files - -# List of resource files that kustomize reads, modifies -# and emits as a YAML string -resources: -- static-files-deploy.yaml -- static-files-ing.yaml -- static-files-svc.yaml -- static-files-test-connection-pod.yaml \ No newline at end of file diff --git a/grumpy/static-files/static-files-deploy.yaml b/grumpy/static-files/static-files-deploy.yaml deleted file mode 100644 index f4d4170..0000000 --- a/grumpy/static-files/static-files-deploy.yaml +++ /dev/null @@ -1,34 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: static-files -spec: - replicas: 1 - selector: - matchLabels: - app.kubernetes.io/instance: static-files - app.kubernetes.io/name: static-files - template: - metadata: - labels: - app.kubernetes.io/instance: static-files - app.kubernetes.io/name: static-files - spec: - containers: - - image: ':' - livenessProbe: - httpGet: - path: / - port: http - name: static-files - ports: - - containerPort: 8080 - name: http - protocol: TCP - readinessProbe: - httpGet: - path: / - port: http - imagePullSecrets: - - name: gitlabsec - serviceAccountName: default diff --git a/grumpy/static-files/static-files-ing.yaml b/grumpy/static-files/static-files-ing.yaml deleted file mode 100644 index 7d36d00..0000000 --- a/grumpy/static-files/static-files-ing.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - annotations: - certmanager.k8s.io/cluseterissuer: letsencrypt-prod - ingress.kubernetes.io/ssl-redirect: "true" - kubernetes.io/ingress.class: traefik - traefik.ingress.kubernetes.io/frontend-entry-points: http,https - traefik.ingress.kubernetes.io/redirect-entry-point: https - traefik.ingress.kubernetes.io/redirect-permanent: "true" - name: static-files diff --git a/grumpy/static-files/static-files-svc.yaml b/grumpy/static-files/static-files-svc.yaml deleted file mode 100644 index 8096a60..0000000 --- a/grumpy/static-files/static-files-svc.yaml +++ /dev/null @@ -1,14 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: static-files -spec: - ports: - - name: http - port: 8080 - protocol: TCP - targetPort: http - selector: - app.kubernetes.io/instance: static-files - app.kubernetes.io/name: static-files - type: ClusterIP diff --git a/grumpy/static-files/static-files-test-connection-pod.yaml b/grumpy/static-files/static-files-test-connection-pod.yaml deleted file mode 100644 index e4dc688..0000000 --- a/grumpy/static-files/static-files-test-connection-pod.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: v1 -kind: Pod -metadata: - name: static-files-test-connection -spec: - containers: - - args: - - static-files:8080 - command: - - wget - image: busybox - name: wget - restartPolicy: Never -- cgit v1.2.3