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/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 ++++++++++ 4 files changed, 101 insertions(+) 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 (limited to 'grumpy/static-files/base') 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 -- cgit v1.2.3