feat : initial commit

This commit is contained in:
2025-06-20 05:56:38 +00:00
commit 9a7e75865a
28 changed files with 1260 additions and 0 deletions
@@ -0,0 +1,16 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: frontend-config
namespace: team1tier-healthsync-front-ns
data:
runtime-env.js: |
window.__runtime_config__ = {
GOOGLE_CLIENT_ID: '198383870460-s1s72vgu91nq9qvg5dai28vafj7mlag1.apps.googleusercontent.com',
AUTH_URL: 'http://team1tier.20.214.196.128.nip.io/api/auth',
HEALTH_URL: 'http://team1tier.20.214.196.128.nip.io/api/health',
INTELLIGENCE_URL: 'http://team1tier.20.214.196.128.nip.io/api/intelligence',
GOAL_URL: 'http://team1tier.20.214.196.128.nip.io/api/goals',
MOTIVATOR_URL: 'http://team1tier.20.214.196.128.nip.io/api/motivator',
USER_URL: 'http://team1tier.20.214.196.128.nip.io/api/user'
};
@@ -0,0 +1,41 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: healthsync-front
namespace: team1tier-healthsync-front-ns
labels:
app: healthsync-front
spec:
revisionHistoryLimit: 3
replicas: 1
selector:
matchLabels:
app: healthsync-front
template:
metadata:
labels:
app: healthsync-front
spec:
imagePullSecrets:
- name: acr-secret
containers:
- name: healthsync-front
image: acrhealthsync01.azurecr.io/team1tier/healthsync-front:1.0.23
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
requests:
cpu: 256m
memory: 256Mi
limits:
cpu: 1024m
memory: 1024Mi
volumeMounts:
- name: runtime-config
mountPath: /usr/share/nginx/html/runtime-env.js
subPath: runtime-env.js
volumes:
- name: runtime-config
configMap:
name: frontend-config
@@ -0,0 +1,21 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: healthsync-frontend-ingress
namespace: team1tier-healthsync-front-ns
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
ingressClassName: nginx
rules:
- host: team1tier.20.214.196.128.nip.io
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: healthsync-front-service
port:
number: 80
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: healthsync-front-service
namespace: team1tier-healthsync-front-ns
labels:
app: healthsync-front
spec:
type: LoadBalancer
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: healthsync-front