initial commit
This commit is contained in:
29
k8s/deploy.rickroll.yaml
Normal file
29
k8s/deploy.rickroll.yaml
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: rickroll
|
||||
namespace: rickroll
|
||||
labels:
|
||||
app: rickroll
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: rickroll
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: rickroll
|
||||
spec:
|
||||
containers:
|
||||
- name: server
|
||||
image: gitea.konchin.com/services/rickroll:latest
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 80
|
||||
env:
|
||||
- name: URI
|
||||
value: https://youtu.be/dQw4w9WgXcQ
|
||||
imagePullSecrets:
|
||||
- name: regcred
|
||||
16
k8s/svc.rickroll.yaml
Normal file
16
k8s/svc.rickroll.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
namespace: rickroll
|
||||
name: rickroll
|
||||
labels:
|
||||
app: rickroll
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: rickroll
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 80
|
||||
Reference in New Issue
Block a user