Sample deployment of simple nginx pod

This commit is contained in:
shockrah 2024-01-17 21:17:25 -08:00
parent 3e149c43ef
commit f60c5b9a35
3 changed files with 28 additions and 0 deletions

1
.gitignore vendored
View File

@ -18,3 +18,4 @@ playbooks/beta/files/*.pub
docker/beta/shockrah.xyz/ docker/beta/shockrah.xyz/
docker/beta/resume.shockrah.xyz/ docker/beta/resume.shockrah.xyz/
k8s/config.yaml

8
k8s/k.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# :eye:
set -e
kubectl --kubeconfig config.yaml $@

View File

@ -0,0 +1,19 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: shockrah-xyz-dep
labels:
app: shockrah-xyz
spec:
replicas: 1
selector:
matchLabels:
app: shockrah-xyz
template:
metadata:
labels:
app: shockrah-xyz
spec:
containers:
- name: bind
image: nginx:latest