--- apiVersion: apps/v1 kind: Deployment metadata: name: yapi spec: replicas: 1 selector: matchLabels: app: yapi template: metadata: labels: app: yapi spec: imagePullSecrets: - name: docker-hub containers: - name: yapi image: beaconfireiic/yapi:latest imagePullPolicy: Always ports: - name: http containerPort: 3000 protocol: TCP --- apiVersion: v1 kind: Service metadata: name: yapi spec: type: ClusterIP ports: - name: http protocol: TCP port: 3000 targetPort: http selector: app: yapi