/front/sagas/index.js 에서 axios . defaults . baseURL = 'http://localhost:3065' ; axios . defaults . withCredentials = true ; 이렇게 공통으로 지정을 해주는데, 만약에 예외적으로 다른 URL을 사용하고 싶으면 어떻게 하나요? function loadPostsAPI ( data ) { return axios . get ( 'http://naver.com/test' , data ); } 이런식으로 개별적으로 URL 넣어주면 될까요? 아니면 애초에 공통URL을 지정해주지 말고 각자 넣어줘야 하는걸까요? 공통URL과 더불어 withCredentials 값도 각자 넣으려면 어떻게 해야하는지 궁금합니다!
kubeadm reset 후 다시 init 시 아래와 같이 나오고 [root@itsm-ci ~]# kubeadm init W1022 16:20:59.529935 3584 configset.go:348] WARNING: kubeadm cannot validate component configs for API groups [kubelet.config.k8s.io kubeproxy.config.k8s.io] [init] Using Kubernetes version: v1.19.3 [preflight] Running pre-flight checks [WARNING SystemVerification]: missing optional cgroups: pids [preflight] Pulling images required for setting up a Kubernetes cluster [preflight] This might take a minute or two, depending on the speed of your internet connection [preflight] You can also perform this action in beforehand using 'kubeadm config images pull' [certs] Using certificateDir folder "/etc/kubernetes/pki" [certs] Generating "ca" certificate and key [certs] Generating "apiserver" certificate and key [certs] apiserver serving cert is signed for DNS names [itsm-ci kubernetes kubernetes.default kubernetes.default.svc kubernetes.default.svc.cluster.local] and IPs [10.96.0.1 10.0.0.73] [certs] Generating "apiserver-kubelet-client" certificate and key [certs] Generating "front-proxy-ca" certificate and key [certs] Generating "front-proxy-client" certificate and key [certs] Generating "etcd/ca" certificate and key [certs] Generating "etcd/server" certificate and key [certs] etcd/server serving cert is signed for DNS names [itsm-ci localhost] and IPs [10.0.0.73 127.0.0.1 ::1] [certs] Generating "etcd/peer" certificate and key [certs] etcd/peer serving cert is signed for DNS names [itsm-ci localhost] and IPs [10.0.0.73 127.0.0.1 ::1] [certs] Generating "etcd/healthcheck-client" certificate and key [certs] Generating "apiserver-etcd-client" certificate and key [certs] Generating "sa" key and public key [kubeconfig] Using kubeconfig folder "/etc/kubernetes" [kubeconfig] Writing "admin.conf" kubeconfig file [kubeconfig] Writing "kubelet.conf" kubeconfig file [kubeconfig] Writing "controller-manager.conf" kubeconfig file [kubeconfig] Writing "scheduler.conf" kubeconfig file [kubelet-start] Writing kubelet environment file with flags to file "/var/lib/kubelet/kubeadm-flags.env" [kubelet-start] Writing kubelet configuration to file "/var/lib/kubelet/config.yaml" [kubelet-start] Starting the kubelet [control-plane] Using manifest folder "/etc/kubernetes/manifests" [control-plane] Creating static Pod manifest for "kube-apiserver" [control-plane] Creating static Pod manifest for "kube-controller-manager" [control-plane] Creating static Pod manifest for "kube-scheduler" [etcd] Creating static Pod manifest for local etcd in "/etc/kubernetes/manifests" [wait-control-plane] Waiting for the kubelet to boot up the control plane as static Pods from directory "/etc/kubernetes/manifests". This can take up to 4m0s [kubelet-check] Initial timeout of 40s passed. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused. [kubelet-check] It seems like the kubelet isn't running or healthy. [kubelet-check] The HTTP call equal to 'curl -sSL http://localhost:10248/healthz' failed with error: Get "http://localhost:10248/healthz": dial tcp [::1]:10248: connect: connection refused. Unfortunately, an error has occurred: timed out waiting for the condition This error is likely caused by: - The kubelet is not running - The kubelet is unhealthy due to a misconfiguration of the node in some way (required cgroups disabled) If you are on a systemd-powered system, you can try to troubleshoot the error with the following commands: - 'systemctl status kubelet' - 'journalctl -xeu kubelet' Additionally, a control plane component may have crashed or exited when started by the container runtime. To troubleshoot, list all containers using your preferred container runtimes CLI. Here is one example how you may list all Kubernetes containers running in docker: - 'docker ps -a | grep kube | grep -v pause' Once you have found the failing container, you can inspect its logs with: - 'docker logs CONTAINERID' error execution phase wait-control-plane: couldn't initialize a Kubernetes cluster To see the stack trace of this error execute with --v=5 or higher 로그를 살펴봐도 딱히 알수가 없어서 질문해요. I1022 16:12:24.517130 28853 server.go:411] Version: v1.19.3 I1022 16:12:24.517630 28853 server.go:831] Client rotation is on, will bootstrap in background I1022 16:12:24.522119 28853 certificate_store.go:130] Loading cert/key pair from "/var/lib/kubelet/pki/kubelet-client-current.pem". I1022 16:12:24.524175 28853 dynamic_cafile_content.go:167] Starting client-ca-bundle::/etc/kubernetes/pki/ca.crt W1022 16:12:24.652251 28853 nvidia.go:61] NVIDIA GPU metrics will not be available: no NVIDIA devices found I1022 16:12:24.683063 28853 server.go:640] --cgroups-per-qos enabled, but --cgroup-root was not specified. defaulting to / I1022 16:12:24.683903 28853 container_manager_linux.go:276] container manager verified user specified cgroup-root exists: [] I1022 16:12:24.683963 28853 container_manager_linux.go:281] Creating Container Manager object based on Node Config: {RuntimeCgroupsName: SystemCgroupsName: KubeletCgroupsName: ContainerRuntime:d I1022 16:12:24.684185 28853 topology_manager.go:126] [topologymanager] Creating topology manager with none policy I1022 16:12:24.684204 28853 container_manager_linux.go:311] [topologymanager] Initializing Topology Manager with none policy I1022 16:12:24.684216 28853 container_manager_linux.go:316] Creating device plugin manager: true I1022 16:12:24.684341 28853 client.go:77] Connecting to docker on unix:///var/run/docker.sock I1022 16:12:24.684363 28853 client.go:94] Start docker client with request timeout=2m0s W1022 16:12:24.698575 28853 docker_service.go:565] Hairpin mode set to "promiscuous-bridge" but kubenet is not enabled, falling back to "hairpin-veth" I1022 16:12:24.698631 28853 docker_service.go:241] Hairpin mode set to "hairpin-veth" W1022 16:12:24.698810 28853 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d W1022 16:12:24.705122 28853 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d I1022 16:12:24.705222 28853 docker_service.go:256] Docker cri networking managed by cni W1022 16:12:24.705328 28853 cni.go:239] Unable to update cni config: no networks found in /etc/cni/net.d I1022 16:12:24.738463 28853 docker_service.go:261] Docker Info: &{ID:QG4V:H44H:7F2H:7W5N:DH3H:YTPU:VC7A:NBXY:HDOO:OZXV:NZYE:6SSC Containers:0 ContainersRunning:0 ContainersPaused:0 ContainersSto ror: RemoteManagers:[] Nodes:0 Managers:0 Cluster:<nil> Warnings:[]} LiveRestoreEnabled:false Isolation: InitBinary:docker-init ContainerdCommit:{ID:8fba4e9a7d01810a393d5d25a3621dc101981175 Expect Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.]} I1022 16:12:24.738619 28853 docker_service.go:274] Setting cgroupDriver to systemd I1022 16:12:24.762240 28853 remote_runtime.go:59] parsed scheme: "" I1022 16:12:24.762276 28853 remote_runtime.go:59] scheme "" not registered, fallback to default scheme I1022 16:12:24.762325 28853 passthrough.go:48] ccResolverWrapper: sending update to cc: {[{/var/run/dockershim.sock <nil> 0 <nil>}] <nil> <nil>} I1022 16:12:24.762351 28853 clientconn.go:948] ClientConn switching balancer to "pick_first" I1022 16:12:24.762445 28853 remote_image.go:50] parsed scheme: "" I1022 16:12:24.762463 28853 remote_image.go:50] scheme "" not registered, fallback to default scheme I1022 16:12:24.762483 28853 passthrough.go:48] ccResolverWrapper: sending update to cc: {[{/var/run/dockershim.sock <nil> 0 <nil>}] <nil> <nil>} I1022 16:12:24.762495 28853 clientconn.go:948] ClientConn switching balancer to "pick_first" I1022 16:12:24.762553 28853 kubelet.go:261] Adding pod path: /etc/kubernetes/manifests I1022 16:12:24.762627 28853 kubelet.go:273] Watching apiserver E1022 16:12:24.764326 28853 reflector.go:127] k8s.io/kubernetes/pkg/kubelet/config/apiserver.go:46: Failed to watch *v1.Pod: failed to list *v1.Pod: Get "https://10.0.0.73:6443/api/v1/pods?fieldSelector=spec.nodeName%3Ditsm-ci&limit=500&resourceVersion=0": dial tcp 10.0.0.73:6443: connect: connection refused E1022 16:12:24.765110 28853 reflector.go:127] k8s.io/client-go/informers/factory.go:134: Failed to watch *v1.Service: failed to list *v1.Service: Get "https://10.0.0.73:6443/api/v1/services?limit=500&resourceVersion=0": dial tcp 10.0.0.73:6443: connect: connection refused E1022 16:12:24.765661 28853 reflector.go:127] k8s.io/kubernetes/pkg/kubelet/kubelet.go:438: Failed to watch *v1.Node: failed to list *v1.Node: Get "https://10.0.0.73:6443/api/v1/nodes?fieldSelector=metadata.name%3Ditsm-ci&limit=500&resourceVersion=0": dial tcp 10.0.0.73:6443: connect: connection refused 계속 connection refused 만 나오는데 원인을 모르겠습니다. centOS7 에서 진행중이고 selinux permitive, 방화벽은 아예 off 되어 있고 swapoff 도 되어 있습니다. 동영상처럼 진행해도 잘 안되네요.
안녕하십니까 제로초님. 유저가 회원가입후 같은 컴퓨터로 다른 사람이 회원가입을 할때를 가정하여 테스트 해보았는데. 즉 회원가입이 성공한뒤 한번더 회원가입을 하는 경우. useEffect 를 사용하여 if(SighUpDone)이면 index페이지로 디렉팅이 되도록 되어있어 회원가입후에는 회원가입 페이지로 들어가지 못합니다. 이 문제를 해결하기 위해 생각한 방법으로는 새로운 Dispatch를 통해서 SignUpDone을 false로 만들거나 혹은 SignUpDone 말고 다른 SignUp이 가능한지 상태를 나타낼수있는 변수생성해 이용하면 구현이 가능할꺼 같기는 한데... Dispatch를 사용하지 않고 signup페이지에서만 이기능을 구현할수 있는 방법이 있나요?
안녕하세요! 스프링 예제를 볼 때 마다, Repository에 대해 구현은 여러개 인게 많은데 Service 에 대한 구현 객체는 꼭 Impl 이라는 이름으로 하나 더라구요..ㅜㅜ 현업에서 하나의 서비스 인터페이스에 대해 두 개 이상의 서비스 구현체를 만드는 경우가 있나요? 있다면 어떤 예시가 있을까요? 감사합니다!
https://github.com/hwd3004/Blog/tree/28-Header(7)-/-history%40-4.7.2 새 계정 만들어서 하면, 만든 아이디로 로그인까지 잘되어지고, 로그아웃도 잘되는데, 있는 아디로 로그인하려하면 에러가 뜹니다. 무엇을 수정해야할까요?
@PostConstruct가 있는 빈을 테스트 중일때 제외 시키고 싶은데 어떻게 해야 할까요. 저 샘플 데이터 때문에 테스트가 이상하게 작동합니다 ㅠㅠ ------------------------------------------------------------- 고민하다가 @SpringBootApplication 어노테이션이 달린 클래스를 하나 더 만들어서 베이스 패키지를 다르게 설정해서 @PostConstruct가 있는 빈을 제외 시켰습니다 그리고 이 클래스(@SpringBootApplication 어노테이션이 달린 다른 클래스)를 Test 클래스에 @SpringBoot(classes = 클래스 이름.class)로 전부 설정 했습니다. 이 방법이 옳은 방법일까요??
안녕하세요, 선생님. 좋은 강의 잘 듣고 있습니다. 다름 아니라 코드에서 오류가 발생하여 진행이 안돼 질문 드립니다 강의 내용은 [실전]크롤링과 데이터베이스 - 크롤링 데이터 DB 자동 저장 코드와 팁2에서 약 8분 16초쯤의 것입니다. discount_percent의 컬럼 이름만 dis_percent로 다르게 하고, 선생님과 동일하게 코드를 작성한 것 같은데 아래 그림과 같이 오류가 납니다. 수업 자료의 코드를 복사해와도 아래처럼 나타나는데 어디서 잘못된 건지 모르겠어 질문드립니다. 답변 기다리고 있겠습니다. 감사합니다.
안녕하세요~ 강의를 듣다가 궁금한점이 생겨서 질문드립니다~ int a = 1; => Integer a = new Integer(1); int b = 1 ; => Integer b = new Integer(1); 이렇게 각자 객체를 생성하는 것으로 알고 있는데요~ System.out.println(a == d); 를 하면 각자 객체를 생성하여 주소가 다른데 왜 true 값이 나오는지 궁금합니다~
강의명: [실전] 크롤링과 데이터베이스 - DB와 프로그래밍 코드 작성과 팁2 안녕하세요. 수업 잘 듣고 있습니다! 파이참에서 최종 코드 크롤링 하는 부분에서 질문 드립니다. 1. 현재 코드 중간 중간에 print (item_info) 나 print (sql) 등 함수가 작성되어 있으니까, 결과를 계속 출력하면서 보여주고 있는데 실제로 데이터를 저장하는 것은 save_data() 함수잖아요~ 그럼 print 함수를 삭제하면 더 속도가 향상되는 걸까요? (print 함수들만 삭제해보았는데 진행 상황을 알 수가 없더라고요..) 2. 완전한 코드 실행 시 시간이 어느정도 걸리는지 알려주시면 감사하겠습니다. 중간에 의식하지 않으면 컴퓨터가 절전모드가 되거나, 너무 오래 걸리다보니 이게 잘 되는건지 싶습니다.. 코드 실행 완료 후 최종적인 결과는 워크벤치에서 데이터를 조회해보면 되는거죠?? 항상 감사합니다!
한 페이지에 테이블 컴포넌트를 여러게 넣고 그중 한 테이블에 상태값을 변경한 경우 다른 컴포넌트의 상태(리로딩).. 스크롤에도 영향을 주는지 궁금합니다. 아래 제 생각이 맞는건가요? 같은 state를 사용할 경우 영향을 준다. 다른 state를 사용하는 경우 영향이 없다...
아래 그림처럼 아이콘 크기가 맞춰지지 않네요.. bootstrap나 custom.scss 가 문제 인가 싶어서 빼보았지만 그대로 였고, editConfiguration 이나 webpack.config.js 문제인가 싶어서 사이드프로젝트 깃헙에서 소스 복붙 했지만 그대로네요 :(