-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathworkload-definition.json
5 lines (5 loc) · 1.26 KB
/
workload-definition.json
1
2
3
4
5
{
"Name":"web3-sample-app",
"YAMLDocument":"apiVersion: v1\nkind: Namespace\nmetadata:\n name: sample-app\n---\napiVersion: v1\nkind: ConfigMap\nmetadata:\n name: web3-sample-app-config\n namespace: sample-app\ndata:\n VITE_RPCENDPOINT: http://forward-proxy.forward-proxy-system.svc.cluster.local\n---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n name: web3-sample-app\n namespace: sample-app\nspec:\n selector:\n matchLabels:\n app: web3-sample\n replicas: 2\n template:\n metadata:\n labels:\n app: web3-sample\n spec:\n containers:\n - name: web3-sample-app\n image: ghcr.io/qleet/web3-sample-app:v0.0.14\n imagePullPolicy: IfNotPresent\n env:\n - name: PORT\n value: '8080'\n - name: VITE_RPCENDPOINT\n valueFrom:\n configMapKeyRef:\n name: web3-sample-app-config\n key: VITE_RPCENDPOINT\n ports:\n - containerPort: 8080\n restartPolicy: Always\n---\napiVersion: v1\nkind: Service\nmetadata:\n name: web3-sample-app\n namespace: sample-app\nspec:\n selector:\n app: web3-sample\n ports:\n - protocol: TCP\n port: 8080\n targetPort: 8080\n\n",
"UserID":1
}