Initial
This commit is contained in:
commit
3e5481639e
39
deployment.yaml
Normal file
39
deployment.yaml
Normal file
@ -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}}}
|
||||
Loading…
Reference in New Issue
Block a user