40 lines
1013 B
YAML
40 lines
1013 B
YAML
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: zot-registry-creds}]
|
|
containers:
|
|
- name: web
|
|
image: registry.13-214-222-230.nip.io/giteaadmin/testapp:6
|
|
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}}}
|