From f60c5b9a35c0ee126c98fc7911a48d521d2fe989 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 17 Jan 2024 21:17:25 -0800 Subject: [PATCH] Sample deployment of simple nginx pod --- .gitignore | 1 + k8s/k.sh | 8 ++++++++ k8s/shockrah.xyz/deployment.yaml | 19 +++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100755 k8s/k.sh create mode 100644 k8s/shockrah.xyz/deployment.yaml diff --git a/.gitignore b/.gitignore index 40b21b4..8c400f9 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ playbooks/beta/files/*.pub docker/beta/shockrah.xyz/ docker/beta/resume.shockrah.xyz/ +k8s/config.yaml diff --git a/k8s/k.sh b/k8s/k.sh new file mode 100755 index 0000000..55a81d1 --- /dev/null +++ b/k8s/k.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +# :eye: + +set -e + +kubectl --kubeconfig config.yaml $@ + diff --git a/k8s/shockrah.xyz/deployment.yaml b/k8s/shockrah.xyz/deployment.yaml new file mode 100644 index 0000000..96701f5 --- /dev/null +++ b/k8s/shockrah.xyz/deployment.yaml @@ -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