Basic health setup
Some checks failed
Ansible Linting / ansible-lint (push) Failing after 4s
Secops Linting and Safety Checks / checkov-scan-s3 (push) Failing after 17s

This commit is contained in:
shockrah 2025-08-27 18:13:39 -07:00
parent f15da0c88d
commit 8f06ef269a
4 changed files with 76 additions and 0 deletions

View File

@ -0,0 +1,14 @@
apiVersion: cert-manager.io/v1
kind: Issuer
metadata:
name: letsencrypt-nginx
spec:
acme:
email: dev@shockrah.xyz
server: https://acme-v02.api.letsencrypt.org/directory
privateKeySecretRef:
name: example
solvers:
- http01:
ingress:
class: nginx

View File

@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Pod
metadata:
name: health-deployment
namespace: testing
labels:
app: health
spec:
replicas: 1
selector:
matchLabels:
app: health
template:
metadata:
labels:
app: health
spec:
containers:
- name: hello-health
image: hashicorp/http-echo
args: [ "-text=Healthy" ]
ports:
- containerPort: 5678
---
apiVersion: v1
kind: Service
metadata:
name: health
namespace: testing
spec:
ports:
- name: http
port: 80
targetPort: 5678
selector:
app: health

View File

@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: vaccum
namespace: testing
annotations:
cert-manager.io/issuer: letsencrypt-nginx
spec:
ingressClassName: nginx
rules:
- host: example.shockrah.xyz
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: health
port:
number: 80

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: testing
labels:
name: testing