commit 3e5481639e73b4d6274664f65702905e02facd07 Author: init Date: Thu Oct 8 23:53:24 2026 +0700 Initial diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 0000000..7420d7a --- /dev/null +++ b/deployment.yaml @@ -0,0 +1,39 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: {name: testapp, namespace: testapp} +spec: + replicas: 2 + selector: {matchLabels: {app: testapp}} + template: + metadata: {labels: {app: testapp}} + spec: + imagePullSecrets: [{name: gitea-registry}] + containers: + - name: web + image: gitea.13-214-222-230.nip.io/giteaadmin/testapp:1 + imagePullPolicy: Always + ports: [{containerPort: 80}] +--- +apiVersion: v1 +kind: Service +metadata: {name: testapp, namespace: testapp} +spec: + selector: {app: testapp} + ports: [{port: 80}] +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: testapp + namespace: testapp + annotations: {cert-manager.io/cluster-issuer: letsencrypt-prod} +spec: + ingressClassName: nginx + tls: [{hosts: [testapp.13-214-222-230.nip.io], secretName: testapp-tls}] + rules: + - host: testapp.13-214-222-230.nip.io + http: + paths: + - path: / + pathType: Prefix + backend: {service: {name: testapp, port: {number: 80}}}