aboutsummaryrefslogtreecommitdiff
path: root/grumpy/static-files/base
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2022-08-21 10:07:24 -0700
committerMax Resnick <max@ofmax.li>2022-08-21 10:07:24 -0700
commita0d6733e195bc04a78e6994ee0c978f8bb6c73ad (patch)
tree40fa705fc6a06ca5e09a9d41287bc2d8c97de45d /grumpy/static-files/base
parentbda8a1c25070678e6efd22003e398691404c832f (diff)
downloadgrumpy-charts-a0d6733e195bc04a78e6994ee0c978f8bb6c73ad.tar.gz
updating api versions, fixing kustomize
Diffstat (limited to 'grumpy/static-files/base')
-rw-r--r--grumpy/static-files/base/kustomization.yaml25
-rw-r--r--grumpy/static-files/base/static-files-deploy.yaml34
-rw-r--r--grumpy/static-files/base/static-files-ing.yaml28
-rw-r--r--grumpy/static-files/base/static-files-svc.yaml14
4 files changed, 101 insertions, 0 deletions
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