Skip to content

Commit

Permalink
configmap
Browse files Browse the repository at this point in the history
  • Loading branch information
thakiyudheen committed Jul 12, 2024
1 parent dcd0d60 commit ec791dd
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
11 changes: 11 additions & 0 deletions manifests/k8s/configMaps/client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: learnup-frontend-config
labels:
app: learnup-client-service
data:
VITE_REACT_APP_PRESET_KEY: cogpbt77
VITE_REACT_APP_CLOUD_NAME: dy8yhxc6a
VITE_STRIPE_PUBLIC_KEY: 'pk_test_51PTgwvEvhq95htrivs2uETviuuagXTJYlLYPkNYzk2dEFnKUNjaL9SCl4RwQIuP7iCao6aPzNryH1uMng76lbNXZ00JyJOwxsu'
VITE_SERVER_URL: 'http://localhost:3006'
35 changes: 35 additions & 0 deletions manifests/k8s/deployments/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: learnup-frontend-deployment
labels:
app: learnup-frontend
spec:
replicas: 1
selector:
matchLabels:
app: learnup-frontend
template:
metadata:
labels:
app: learnup-frontend
spec:
containers:
- name: learnup-frontend
image: thakiyudheen/learnup-client:latest
ports:
- containerPort: 5173
envFrom:
- configMapRef:
name: learnup-frontend-config
---
apiVersion: v1
kind: Service
metadata:
name: learnup-frontend-service
spec:
selector:
app: learnup-frontend
ports:
- port: 5173
targetPort: 5173

0 comments on commit ec791dd

Please sign in to comment.