feat(sirius-growth): deploy the static site on linode
No HTTPRoute: no public hostname has been named. Photos stay on the Pi Garage listener, which is loopback-only.
This commit is contained in:
parent
c736dfd108
commit
5a98fd620f
5 changed files with 73 additions and 0 deletions
46
apps/base/sirius-growth/deployment.yaml
Normal file
46
apps/base/sirius-growth/deployment.yaml
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: sirius-growth-site
|
||||
namespace: sirius-growth
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: sirius-growth-site
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: sirius-growth-site
|
||||
spec:
|
||||
tolerations:
|
||||
- key: dedicated
|
||||
operator: Exists
|
||||
effect: PreferNoSchedule
|
||||
nodeSelector:
|
||||
kubernetes.io/hostname: linode
|
||||
containers:
|
||||
- name: nginx
|
||||
image: forgejo.siriusdevops.com/sirius/sirius-growth-site:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 15
|
||||
periodSeconds: 20
|
||||
resources:
|
||||
requests:
|
||||
cpu: 25m
|
||||
memory: 48Mi
|
||||
limits:
|
||||
memory: 192Mi
|
||||
6
apps/base/sirius-growth/kustomization.yaml
Normal file
6
apps/base/sirius-growth/kustomization.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
6
apps/base/sirius-growth/namespace.yaml
Normal file
6
apps/base/sirius-growth/namespace.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: sirius-growth
|
||||
labels:
|
||||
app.kubernetes.io/part-of: sirius-growth
|
||||
14
apps/base/sirius-growth/service.yaml
Normal file
14
apps/base/sirius-growth/service.yaml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: sirius-growth-site
|
||||
namespace: sirius-growth
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: sirius-growth-site
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
Loading…
Reference in a new issue