Add: rickroll
Some checks failed
Lint yaml / build-package (push) Failing after 8s

This commit is contained in:
2024-11-06 09:58:20 +00:00
parent fc41753688
commit 3934c68c53
5 changed files with 80 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: rickroll
labels:
app: rickroll
spec:
replicas: 1
selector:
matchLabels:
app: rickroll
template:
metadata:
labels:
app: rickroll
spec:
containers:
- name: server
securityContext:
runAsNonRoot: true
runAsUser: 1000
image: gitea.konchin.com/service/rickroll:latest
ports:
- name: http
containerPort: 8080
env:
- name: URI
value: https://youtu.be/dQw4w9WgXcQ
- name: PORT
value: '8080'
imagePullSecrets:
- name: regcred

View File

@@ -0,0 +1,16 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: rickroll
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: rickroll
port:
number: 80

View File

@@ -0,0 +1,11 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: rickroll
generatorOptions:
disableNameSuffixHash: true
resources:
- ns.rickroll.yaml
- deploy.rickroll.yaml
- svc.rickroll.yaml
- ing.rickroll.yaml

View File

@@ -0,0 +1,5 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: rickroll

View File

@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: rickroll
labels:
app: rickroll
spec:
type: ClusterIP
selector:
app: rickroll
ports:
- name: http
port: 80
targetPort: 8080