-
서비스 접속 테스트용 curl 이미지 설치 및 사용Kubernetes 2025. 3. 10. 08:49728x90
Curl Image 구동
- curl.yaml 내용
################################################################################################## # Curl service ################################################################################################## apiVersion: v1 kind: ServiceAccount metadata: name: curl --- apiVersion: v1 kind: Service metadata: name: curl labels: app: curl service: curl spec: ports: - port: 80 name: http selector: app: curl --- apiVersion: apps/v1 kind: Deployment metadata: name: curl spec: replicas: 1 selector: matchLabels: app: curl template: metadata: labels: app: curl spec: terminationGracePeriodSeconds: 0 serviceAccountName: curl containers: - name: curl image: curlimages/curl command: ["/bin/sleep", "infinity"] imagePullPolicy: IfNotPresent volumeMounts: - mountPath: /etc/curl/tls name: secret-volume volumes: - name: secret-volume secret: secretName: curl-secret optional: true ---Curl Image 구동
Istio 사용시
- curl 애플리케이션을 배포하기 전에 사이드카를 수동으로 주입
kubectl apply -f <(istioctl kube-inject -f curl.yaml)
728x90'Kubernetes' 카테고리의 다른 글
Egress Gateway에서 VirtualService 설정이 필요한가? (0) 2025.03.12 istio에서 north-south traffic의 의미 (0) 2025.03.12 Kubernetes Controller 작성의 핵심 개념 (1) 2025.03.02 CRD와 CR만 정의하는 경우 활용 사례 (0) 2025.03.02 client-go under the hood (0) 2025.03.02