Skip to content

Commit

Permalink
deploy todayinmarch2020
Browse files Browse the repository at this point in the history
Signed-off-by: Xe Iaso <[email protected]>
  • Loading branch information
Xe committed Sep 8, 2024
1 parent 6ff7314 commit 1390f43
Show file tree
Hide file tree
Showing 5 changed files with 95 additions and 0 deletions.
1 change: 1 addition & 0 deletions kube/alrest/x/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ resources:
- hlang
#- johaus
- sapientwindex
- todayinmarch2020
- within.website
51 changes: 51 additions & 0 deletions kube/alrest/x/todayinmarch2020/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: todayinmarch2020
labels:
app.kubernetes.io/name: todayinmarch2020
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: todayinmarch2020
template:
metadata:
labels:
app.kubernetes.io/name: todayinmarch2020
spec:
securityContext:
fsGroup: 1000
containers:
- name: main
image: ghcr.io/xe/x/todayinmarch2020:latest
imagePullPolicy: "Always"
resources:
limits:
cpu: "500m"
memory: "256Mi"
requests:
cpu: "250m"
memory: "128Mi"
securityContext:
runAsUser: 1000
runAsGroup: 1000
runAsNonRoot: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
seccompProfile:
type: RuntimeDefault
livenessProbe:
httpGet:
path: /
port: 8080
httpHeaders:
- name: X-Kubernetes
value: "is kinda okay"
initialDelaySeconds: 3
periodSeconds: 3
env:
- name: PORT
value: "8080"
25 changes: 25 additions & 0 deletions kube/alrest/x/todayinmarch2020/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: todayinmarch2020
labels:
app.kubernetes.io/name: todayinmarch2020
annotations:
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
ingressClassName: nginx
tls:
- hosts:
- todayinmarch2020.xn--sz8hf6d.ws
secretName: todayinmarch2020-public-tls
rules:
- host: todayinmarch2020.xn--sz8hf6d.ws
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: todayinmarch2020
port:
name: http
4 changes: 4 additions & 0 deletions kube/alrest/x/todayinmarch2020/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resources:
- deployment.yaml
- service.yaml
- ingress.yaml
14 changes: 14 additions & 0 deletions kube/alrest/x/todayinmarch2020/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: todayinmarch2020
labels:
app.kubernetes.io/name: todayinmarch2020
spec:
selector:
app.kubernetes.io/name: todayinmarch2020
ports:
- port: 80
targetPort: 8080
name: http
type: ClusterIP

0 comments on commit 1390f43

Please sign in to comment.