This commit is contained in:
33
rickroll/deploy.rickroll.yaml
Normal file
33
rickroll/deploy.rickroll.yaml
Normal 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
|
||||
16
rickroll/ing.rickroll.yaml
Normal file
16
rickroll/ing.rickroll.yaml
Normal 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
|
||||
11
rickroll/kustomization.yaml
Normal file
11
rickroll/kustomization.yaml
Normal 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
|
||||
5
rickroll/ns.rickroll.yaml
Normal file
5
rickroll/ns.rickroll.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: rickroll
|
||||
15
rickroll/svc.rickroll.yaml
Normal file
15
rickroll/svc.rickroll.yaml
Normal 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
|
||||
Reference in New Issue
Block a user