# library-svc — история тредов apiVersion: apps/v1 kind: Deployment metadata: name: library-svc namespace: gooseek spec: replicas: 2 selector: matchLabels: app: library-svc template: metadata: labels: app: library-svc annotations: prometheus.io/scrape: "true" prometheus.io/port: "3009" prometheus.io/path: "/metrics" spec: containers: - name: library-svc image: gooseek/library-svc:latest ports: - containerPort: 3009 env: - name: POSTGRES_URL valueFrom: secretKeyRef: name: db-credentials key: url - name: AUTH_SERVICE_URL value: "http://auth-svc.gooseek-auth:3014" livenessProbe: httpGet: path: /health port: 3009 initialDelaySeconds: 5 periodSeconds: 10 readinessProbe: httpGet: path: /ready port: 3009 initialDelaySeconds: 3 periodSeconds: 5 resources: requests: cpu: 50m memory: 128Mi limits: cpu: 500m memory: 512Mi --- apiVersion: v1 kind: Service metadata: name: library-svc namespace: gooseek spec: selector: app: library-svc ports: - port: 3009 targetPort: 3009