예제를 테스트중인데 막혀서 이렇게 질문드려 봅니다. 예제는 간단합니다. kind로 k8s 클러스터를 만들고 helm으로 docker image를 실행시킨 다음 gRPC 클라이언트로 요청하나를 보내는 것입니다.
- 윈도우 WLS2 에서 실습
package main | |
import ( | |
"fmt" | |
) | |
// Server - 서버 설정을 위한 구조체 | |
type Server struct { | |
Host string | |
Port int |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
// 날짜와 시간을 모두 파싱 (time.Local 사용) | |
dateTimeStr := "2024-01-01 09:10:20" |
package main | |
import ( | |
"bufio" | |
"context" | |
"errors" | |
"fmt" | |
"io" | |
"os" | |
"time" |
THE KREUTZER SONATA. | |
CHAPTER I. | |
Travellers left and entered our car at every stopping of the train. | |
Three persons, however, remained, bound, like myself, for the farthest |
{ | |
"public_identifier":"johnrmarty", | |
"profile_pic_url":"https://s3.us-west-000.backblazeb2.com/proxycurl/person/johnrmarty/profile?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=0004d7f56a0400b0000000001%2F20230713%2Fus-west-000%2Fs3%2Faws4_request&X-Amz-Date=20230713T082809Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=a4160fa552e755a71cd052a448bb2b2c64e1f4ffcac32501800d451e36dfed0c", | |
"background_cover_image_url":"None", | |
"first_name":"John", | |
"last_name":"Marty", | |
"full_name":"John Marty", | |
"follower_count":285045, | |
"occupation":"Co-Founder at FF Real Estate", | |
"headline":"LinkedIn Top Voice", |
syntax on | |
set nu rnu | |
set expandtab | |
set tabstop=2 | |
set shiftwidth=2 | |
colo wombat | |
map <C-n> :cnext<CR> |
# START: probes | |
# START: beginning | |
FROM golang:1.18-alpine AS build | |
WORKDIR /go/src/proglog | |
COPY . . | |
RUN CGO_ENABLED=0 go build -o /go/bin/proglog ./cmd/proglog | |
# END: beginning | |
# START_HIGHLIGHT | |
RUN GRPC_HEALTH_PROBE_VERSION=v0.4.1 && \ | |
wget -qO /go/bin/grpc_health_probe \ |
$ helm template proglog deploy/proglog | |
--- | |
# Source: proglog/templates/service.yaml | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: proglog | |
namespace: default | |
labels: | |
helm.sh/chart: proglog-0.1.0 |
{ | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": [], | |
"defaultProfile": "{07b52e3e-de2c-5db4-bd2d-ba144ed6c273}", | |
"profiles": | |
{ | |
"defaults": {}, | |
"list": | |
[ | |
{ |