Create deployment.yaml
This commit is contained in:
40
Deployment/deployment.yaml
Normal file
40
Deployment/deployment.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: onix-demo-adapter
|
||||
namespace: onix-demo-saksham #------
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: onix-demo-adapter
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: onix-demo-adapter
|
||||
annotations:
|
||||
gke-gcsfuse/volumes: "true"
|
||||
spec:
|
||||
serviceAccountName: "onix-adapter-sa" #-----------
|
||||
containers:
|
||||
- name: onix-adapter
|
||||
image: "asia-south1-docker.pkg.dev/trusty-relic-370809/onix-adapter-beta/adapter:latest" #------
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
env:
|
||||
- name: CONFIG_FILE
|
||||
value: "/mnt/gcs/configs/onix-adapter.yaml" # Updated to GCS path
|
||||
|
||||
volumeMounts:
|
||||
- name: gcs-bucket
|
||||
mountPath: /mnt/gcs
|
||||
readOnly: false
|
||||
|
||||
volumes:
|
||||
- name: gcs-bucket
|
||||
csi:
|
||||
driver: gcsfuse.csi.storage.gke.io
|
||||
readOnly: false
|
||||
volumeAttributes:
|
||||
bucketName: "beckn-onix-demo" #----------
|
||||
mountOptions: "implicit-dirs"
|
||||
Reference in New Issue
Block a user