mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-14 16:55:00 +01:00
k8s
This commit is contained in:
parent
6274818d1f
commit
f76aac3b59
5 changed files with 59 additions and 1 deletions
7
kube/docker-nilstrieb-dev-image-pull-secret.yaml
Normal file
7
kube/docker-nilstrieb-dev-image-pull-secret.yaml
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: docker-nilstrieb-dev-login
|
||||||
|
type: kubernetes.io/dockerconfigjson
|
||||||
|
data:
|
||||||
|
.dockerconfigjson: <fill me>
|
||||||
25
kube/hugo-chat-frontend-deployment.yaml
Normal file
25
kube/hugo-chat-frontend-deployment.yaml
Normal file
|
|
@ -0,0 +1,25 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: hugo-chat-frontend
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: hugo-chat-frontend
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: hugo-chat-frontend
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: hugo-chat-frontend
|
||||||
|
image: docker.nilstrieb.dev/hugo-chat-frontend:1.1
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
cpu: 200m
|
||||||
|
memory: 300M
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: docker-nilstrieb-dev-login
|
||||||
11
kube/hugo-chat-frontend-service.yaml
Normal file
11
kube/hugo-chat-frontend-service.yaml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hugo-chat-frontend-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
name: hugo-chat-frontend
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
16
kube/ubuntu-debugger.yaml
Normal file
16
kube/ubuntu-debugger.yaml
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: ubuntu-debugger
|
||||||
|
labels:
|
||||||
|
name: ubuntu-debugger
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: ubuntu-debugger
|
||||||
|
image: docker.io/ubuntu:latest
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "500m"
|
||||||
|
command: [ "/bin/bash", "-c", "--" ]
|
||||||
|
args: [ "while true; do sleep 30; done;" ]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue