Search

Customer

IMAGE_URL=$(aws ecr describe-repositories --repository-name wsi-customer-ecr --query "repositories[].repositoryUri" --output text) IMAGE_TAG=$(aws ecr describe-images --repository-name wsi-customer-ecr --query "imageDetails[].imageTags" --output text) IMAGE="$IMAGE_URL:$IMAGE_TAG"
Shell
복사
sed -i "s|IMAGE|$IMAGE|g" deployment.yaml
Shell
복사
kubectl apply -f deployment.yaml
Shell
복사
apiVersion: v1 kind: Service metadata: name: wsi-customer-service namespace: skills spec: selector: app: customer ports: - protocol: TCP port: 8080 targetPort: 8080
YAML
복사
kubectl apply -f service.yaml
Shell
복사