Last active
May 10, 2025 13:37
-
-
Save gauravtoshniwal1989/4d270b74cc7a5e40fafabf1daa41dfe2 to your computer and use it in GitHub Desktop.
Installing Watson Agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: watson | |
| labels: | |
| app: watson | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: watson | |
| template: | |
| metadata: | |
| labels: | |
| app: watson | |
| spec: | |
| containers: | |
| - name: watson | |
| image: sherlocksai/watson:latest | |
| imagePullPolicy: Always | |
| ports: | |
| - containerPort: 8080 | |
| env: | |
| - name: GOOGLE_APPLICATION_CREDENTIALS | |
| value: /secrets/gcp/key.json | |
| - name: GCP_ZONE | |
| valueFrom: | |
| secretKeyRef: | |
| name: watson-env-vars | |
| key: GCP_ZONE | |
| - name: GCP_REGION | |
| valueFrom: | |
| secretKeyRef: | |
| name: watson-env-vars | |
| key: GCP_REGION | |
| - name: GCP_CLUSTER_NAME | |
| valueFrom: | |
| secretKeyRef: | |
| name: watson-env-vars | |
| key: GCP_CLUSTER_NAME | |
| volumeMounts: | |
| - name: gcp-creds | |
| mountPath: /secrets/gcp | |
| readOnly: true | |
| volumes: | |
| - name: gcp-creds | |
| secret: | |
| secretName: sherlocks-gcp-creds | |
| --- | |
| apiVersion: v1 | |
| kind: Service | |
| metadata: | |
| name: watson-service | |
| spec: | |
| selector: | |
| app: watson | |
| ports: | |
| - port: 80 | |
| targetPort: 8080 | |
| type: LoadBalancer | |
| --- | |
| apiVersion: networking.k8s.io/v1 | |
| kind: Ingress | |
| metadata: | |
| name: watson-ingress | |
| annotations: | |
| kubernetes.io/ingress.class: "gce" | |
| nginx.ingress.kubernetes.io/ssl-redirect: "true" | |
| cert-manager.io/cluster-issuer: "letsencrypt-prod" | |
| spec: | |
| tls: | |
| - hosts: | |
| - watson.sherlocks.ai | |
| secretName: watson-tls | |
| rules: | |
| - host: watson.sherlocks.ai | |
| http: | |
| paths: | |
| - path: / | |
| pathType: Prefix | |
| backend: | |
| service: | |
| name: watson-service | |
| port: | |
| number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment