Sample deployment of simple nginx pod
This commit is contained in:
parent
3e149c43ef
commit
f60c5b9a35
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
8
k8s/k.sh
Executable file
@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# :eye:
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
kubectl --kubeconfig config.yaml $@
|
||||||
|
|
19
k8s/shockrah.xyz/deployment.yaml
Normal file
19
k8s/shockrah.xyz/deployment.yaml
Normal 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
|
Loading…
Reference in New Issue
Block a user