commit 1055449adf5da13afbae88cf5f68547a217c017c Author: Anibal Angulo Date: Sat Oct 18 08:19:38 2025 -0600 initial commit diff --git a/dev/deployment.yaml b/dev/deployment.yaml new file mode 100644 index 0000000..0c5250f --- /dev/null +++ b/dev/deployment.yaml @@ -0,0 +1,33 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: sample-app + labels: + app: sample-app +spec: + replicas: 2 + selector: + matchLabels: + app: sample-app + template: + metadata: + labels: + app: sample-app + spec: + containers: + - name: sample-app + image: nginx:1.25-alpine + ports: + - containerPort: 80 + readinessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 5 + periodSeconds: 10 + livenessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 15 + periodSeconds: 20 diff --git a/dev/service.yaml b/dev/service.yaml new file mode 100644 index 0000000..72245ff --- /dev/null +++ b/dev/service.yaml @@ -0,0 +1,14 @@ +apiVersion: v1 +kind: Service +metadata: + name: sample-app + labels: + app: sample-app +spec: + type: ClusterIP + selector: + app: sample-app + ports: + - name: http + port: 80 + targetPort: 80