Deploy Symcrest public website
This commit is contained in:
parent
08e5bee431
commit
6bdb9b0d4a
8 changed files with 247 additions and 0 deletions
87
rendered/symcrest-web/symcrest-web.yaml
Normal file
87
rendered/symcrest-web/symcrest-web.yaml
Normal file
|
|
@ -0,0 +1,87 @@
|
|||
---
|
||||
# Source: symcrest-web/templates/service.yaml
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: symcrest-web
|
||||
namespace: apps
|
||||
spec:
|
||||
selector:
|
||||
app: symcrest-web
|
||||
ports:
|
||||
- name: http
|
||||
port: 80
|
||||
targetPort: 3000
|
||||
protocol: TCP
|
||||
---
|
||||
# Source: symcrest-web/templates/deployment.yaml
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: symcrest-web
|
||||
namespace: apps
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app: symcrest-web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: symcrest-web
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: forgejo-registry
|
||||
containers:
|
||||
- name: symcrest-web
|
||||
image: "www.symcrest.com/symcrest/symcrest-web:1.0.0"
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 3000
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: HOST
|
||||
value: "0.0.0.0"
|
||||
- name: PORT
|
||||
value: "3000"
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: http
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 20
|
||||
resources:
|
||||
limits:
|
||||
cpu: 250m
|
||||
memory: 256Mi
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
---
|
||||
# Source: symcrest-web/templates/httproute.yaml
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: symcrest-web
|
||||
namespace: apps
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: public-gateway
|
||||
namespace: apps
|
||||
hostnames:
|
||||
- "www.symcrest.com"
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
backendRefs:
|
||||
- name: symcrest-web
|
||||
port: 80
|
||||
Loading…
Add table
Add a link
Reference in a new issue