apiVersion: apps/v1 kind: Deployment metadata: name: new-api namespace: llm labels: app: new-api spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: new-api template: metadata: labels: app: new-api annotations: llm.local/compose-service: "new-api" spec: nodeName: prod102 enableServiceLinks: false hostAliases: - ip: 10.0.1.47 hostnames: ["host.docker.internal"] containers: - name: new-api image: calciumion/new-api:latest imagePullPolicy: IfNotPresent command: - "/new-api" args: - "--log-dir" - "/app/logs" envFrom: - secretRef: name: new-api-env ports: - containerPort: 3000 hostPort: 3000 protocol: TCP volumeMounts: - name: vol0 mountPath: "/data" - name: vol1 mountPath: "/app/logs" volumes: - name: vol0 hostPath: path: "/opt/new-api/data" type: Directory - name: vol1 hostPath: path: "/opt/new-api/logs" type: Directory --- apiVersion: v1 kind: Service metadata: name: new-api namespace: llm spec: selector: app: new-api ports: - name: p3000 port: 3000 targetPort: 3000 protocol: TCP