Recently
-
- {{ range first 10 .Site.RegularPages }}
+ {{- range first 10 .Site.RegularPages -}}
- {{ .PublishDate | time.Format "2006-01-02" }} — {{ .LinkTitle }} - {{ end }} + {{- end -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 6a5bbf3..0ad3bde 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -1,4 +1,4 @@
-{{ define "main" }}
+{{- define "main" -}}
{{ .Title | markdownify }}
{{ .Params.description }}
{{ end }} - {{ if or (.Params.author) (.Params.date) }} +{{- define "aside" -}} + {{- if .Params.description -}}{{ .Params.description }}
{{- end -}} + {{- if or (.Params.author) (.Params.date) -}}- {{ if .Params.author }}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{ end }} + {{- if .Params.author -}}By {{ .Params.author }}{{ if .Date }}, {{ end }}{{- end -}} {{ if .Date }}{{ .Date.Format "2006-01-02" }}{{ end }}
- {{ end }} + {{- end -}} - {{ if and (.Params.toc) (.TableOfContents) }} + {{- if and (.Params.toc) (.TableOfContents) -}}{{ . | markdownify }}
{{ end }}
{{ .Get "summary" | markdownify }}
-{{ printf "```%s%s```" (.Get "lang") (.Get "details") | markdownify}}
+{{- printf "```%s%s```" (.Get "lang") (.Get "details") | markdownify -}}
@@ -87,7 +67,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -90,7 +68,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -98,7 +82,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
the rest of this is pretty much boilerplate:
-kubectl apply -f https://estradiol.cloud/posts/hugo-on-k8s/site.yaml
# estradiol-cloud.yaml
+
kubectl apply -f https://estradiol.cloud/posts/hugo-on-k8s/site.yaml
# estradiol-cloud.yaml
apiVersion: v1
kind: ConfigMap
metadata:
@@ -237,8 +229,7 @@ out:
- name: nginx-server-block
configMap:
name: nginx-server-block
-
-kubectl apply -f https://estradiol.cloud/posts/hugo-on-k8s-nginx/service.yaml
# service.yaml
+
kubectl apply -f https://estradiol.cloud/posts/hugo-on-k8s-nginx/service.yaml
# service.yaml
apiVersion: v1
kind: Service
metadata:
@@ -277,16 +267,14 @@ replicas port: 80
protocol: TCP
targetPort: http
-
next, i need an Ingress
to handle traffic inbound to the cluster
and direct it to the Service
:
-kubectl apply -f https://estradiol.cloud/posts/hugo-on-k8s-nginx/ingress.yaml
# ingress.yaml
+
kubectl apply -f https://estradiol.cloud/posts/hugo-on-k8s-nginx/ingress.yaml
# ingress.yaml
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
@@ -306,8 +294,7 @@ and direct it to the
Service
:
name: http
path: /
pathType: Prefix
-
this part expresses a routing rule: traffic reaching the cluster via @@ -333,8 +320,7 @@ replace all my YAML with a call out to this chart and a few lines of configuration, assuming i have helm client installed:
-helm upgrade --install --create-namespace --namespace estradiol-cloud -f https://estradiol.cloud/posts/hugo-on-k8s-nginx/values.yaml oci://registry-1.docker.io/bitnamicharts/nginx
# values.yaml
+
helm upgrade --install --create-namespace --namespace estradiol-cloud -f https://estradiol.cloud/posts/hugo-on-k8s-nginx/values.yaml oci://registry-1.docker.io/bitnamicharts/nginx
# values.yaml
cloneStaticSiteFromGit:
enabled: true
repository: "https://code.estradiol.cloud/tamsin/estradiol.cloud.git"
@@ -363,8 +349,7 @@ configuration, assuming i have hel
}
service:
type: ClusterIP
-
bitnami
Helm charts:
my values.yaml
:
-release.yaml
apiVersion: helm.toolkit.fluxcd.io/v2beta1
+
release.yaml
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: web
@@ -466,8 +450,7 @@ my
values.yaml
:
}
service:
type: ClusterIP
-
when i push these to my flux
source repository, the Helm
@@ -543,15 +526,11 @@ dependency for my flux
source repository, i also depend on GitLab d
@@ -569,7 +548,7 @@ dependency for mythe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
flux
source repository, i also depend on GitLab d
chaosfem.tw/@t4tamsin
flux
source repository, i also depend on GitLab d
kubernetes is for girls
- -- - 2024-03-12 -
- - - -kubernetes is for girls
2024-03-12 +
@@ -90,7 +68,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
-values.yaml
ingress:
+
values.yaml
ingress:
main:
enabled: true
className: nginx
@@ -103,22 +95,17 @@ bitnami chart), but using it in the existing chart required:
persistence:
enabled: true
size: 10Gi
-
@@ -136,7 +123,7 @@ bitnami chart), but using it in the existing chart required: chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
- - 2024-03-04 +
2024-03-04
- - - -@@ -87,7 +67,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -87,7 +67,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -102,7 +72,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -90,7 +68,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -90,7 +68,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -87,7 +67,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.
@@ -87,7 +67,7 @@ chaosfem.tw/@t4tamsinthe regrown limb can be monstrous, duplicated, potent. We have all been injured, profoundly.