aboutsummaryrefslogtreecommitdiff
path: root/grumpy/static-files/base
diff options
context:
space:
mode:
authorMax Resnick <max@ofmax.li>2022-09-17 08:02:23 -0700
committerMax Resnick <max@ofmax.li>2022-09-17 08:02:23 -0700
commitd8a0b223dfbe86e88866174082028701b23ab2d4 (patch)
treeffe1a388375fe1613c294a796a064d719c2ada4b /grumpy/static-files/base
parenta0d6733e195bc04a78e6994ee0c978f8bb6c73ad (diff)
downloadgrumpy-charts-d8a0b223dfbe86e88866174082028701b23ab2d4.tar.gz
updated manifests so they actually work
Diffstat (limited to '')
-rw-r--r--grumpy/static-files/base/kustomization.yaml21
-rw-r--r--grumpy/static-files/base/static-files-deploy.yaml14
-rw-r--r--grumpy/static-files/base/static-files-ing.yaml17
-rw-r--r--grumpy/static-files/base/static-files-svc.yaml6
4 files changed, 25 insertions, 33 deletions
diff --git a/grumpy/static-files/base/kustomization.yaml b/grumpy/static-files/base/kustomization.yaml
index 6d1eee5..8884ed5 100644
--- a/grumpy/static-files/base/kustomization.yaml
+++ b/grumpy/static-files/base/kustomization.yaml
@@ -1,19 +1,3 @@
-# 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
@@ -21,5 +5,10 @@ resources:
- static-files-deploy.yaml
- static-files-ing.yaml
- static-files-svc.yaml
+ # - middleware.yaml
+
+ # configurations:
+ # - nameReference.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
index f89e7d7..993c6e4 100644
--- a/grumpy/static-files/base/static-files-deploy.yaml
+++ b/grumpy/static-files/base/static-files-deploy.yaml
@@ -2,25 +2,27 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: static-files
+ labels:
+ app.kubernetes.io/part-of: static-files
+ app.kubernetes.io/version: "1.0"
spec:
replicas: 1
selector:
matchLabels:
- app.kubernetes.io/instance: static-files
- app.kubernetes.io/name: static-files
+ app.kubernetes.io/part-of: static-files
template:
metadata:
labels:
- app.kubernetes.io/instance: static-files
- app.kubernetes.io/name: static-files
+ app.kubernetes.io/part-of: static-files
+ app.kubernetes.io/version: "1.0"
spec:
containers:
- - image: static-files
+ - image: web
livenessProbe:
httpGet:
path: /
port: http
- name: static-files
+ name: web
ports:
- containerPort: 8080
name: http
diff --git a/grumpy/static-files/base/static-files-ing.yaml b/grumpy/static-files/base/static-files-ing.yaml
index f0f05eb..9dee43b 100644
--- a/grumpy/static-files/base/static-files-ing.yaml
+++ b/grumpy/static-files/base/static-files-ing.yaml
@@ -5,24 +5,23 @@ metadata:
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
+ name: static-files
+ labels:
+ app.kubernetes.io/part-of: static-files
+ app.kubernetes.io/version: "1.0"
spec:
rules:
- - host: ofmax.li
+ - host: host
http:
paths:
- backend:
service:
- name: blog
+ name: static-files
port:
number: 8080
pathType: Prefix
path: /
tls:
- hosts:
- - www.ofmax.li
- - ofmax.li
- secretName: ofmax-li-sec
+ - host
+ secretName: prod-ofmax-li-sec
diff --git a/grumpy/static-files/base/static-files-svc.yaml b/grumpy/static-files/base/static-files-svc.yaml
index 8096a60..f169a75 100644
--- a/grumpy/static-files/base/static-files-svc.yaml
+++ b/grumpy/static-files/base/static-files-svc.yaml
@@ -2,6 +2,9 @@ apiVersion: v1
kind: Service
metadata:
name: static-files
+ labels:
+ app.kubernetes.io/part-of: static-files
+ app.kubernetes.io/version: "1.0"
spec:
ports:
- name: http
@@ -9,6 +12,5 @@ spec:
protocol: TCP
targetPort: http
selector:
- app.kubernetes.io/instance: static-files
- app.kubernetes.io/name: static-files
+ app.kubernetes.io/part-of: static-files
type: ClusterIP