본문 바로가기

유성이의 기술 메모109

ClusterIP, NodePort, Ingress 개념 2020.04.10 1. ClusterIP - A ClusterIP service is the default Kubernetes service. It gives you a service inside your cluster that other apps inside your cluster can access. There is no external access. $ k proxy --port=8080 & [1] 893 ysjeon71_kubeflow2@cs-6000-devshell-vm-92bccb22-ff7a-491b-99a2-c333678d033d:~/exam-tfserving$ Starting to serve on 127.0.0.1:8080 The service’s proxy URL: http://kub.. 2021. 9. 23.
Crunchy PostgreSQL Managements 2021.04.11 1. PostgreSQL 파라미터 값 수정 a. 수정 할 configmap 찾기 $ k get configmaps -n pgo | egrep 'NAME|-pgha-config' NAME DATA AGE gmd-prd-pgha-config 4 15d $ b. 파라미터 수정하기 $ k edit configmaps gmd-prd-pgha-config -n pgo apiVersion: v1 data: gmd-prd-dcs-config: | postgresql: parameters: archive_command: source /opt/cpm/bin/pgbackrest/pgbackrest-set-env.sh && pgbackrest archive-push "%p" archive_mode: tru.. 2021. 9. 23.
K8s 잡학다식 - busybox / Favoriate OS $ kubectl run -it --rm --restart=Never --image=busybox busybox -- sh $ kubectl run -it --rm --restart=Never --image=centos centos -- bash $ kubectl run -it --rm --restart=Never --image=ubuntu ubuntu — bash $ kubectl run -it --rm --restart=Never --image=alpine alpine -- bash - netshoot : a Docker + Kubernetes network trouble-shooting swiss-army container (https://github.c.. 2021. 9. 23.
Cert-manager with LetsEncrypt (DNS challenge) 2020.07.16 Cert-manager with LetsEncrypt (DNS challenge) Cert-manager with LetsEncrypt (HTTP challenge): https://1week.tistory.com/57 1. 개요 - cert-manager is a native Kubernetes certificate management controller. It can help with issuing certificates from a variety of sources, such as Let’s Encrypt, HashiCorp Vault, Venafi, a simple signing key pair, or self signed. - cert-manager can be used to.. 2021. 9. 23.
Crobjob 2020.08.07 1. K8s CronJob https://kubernetes.io/ko/docs/concepts/workloads/controllers/cron-jobs/ 2. CrobJob Test $ cat cronjob.yaml apiVersion: batch/v1beta1 kind: CronJob metadata: name: hello namespace: yoosung-jeon spec: schedule: "*/1 * * * *" jobTemplate: spec: template: spec: containers: - name: hello image: busybox args: - /bin/sh - -c - date; echo Hello from the Kubernetes cluster resta.. 2021. 9. 23.
Crunchy PostgreSQL Operator #2 2021.04.22, 2020.09.10 Crunchy PostgreSQL Operator #1 1. Crunchy PostgreSQL Operator 소개 2. PostgreSQL Operator Configuration 3. Create a PostgreSQL Cluster (Multi-Tenancy) 4. pgAdmin4 Crunchy PostgreSQL Operator #2 5. High-Availability 6. Disaster Recovery: Backups & Restores 7. Monitoring 8. pgBouncer 5. High-Availability - High-Availability: Scaling Up & Down https://access.crunchydata.com/doc.. 2021. 9. 23.
Crunchy PostgreSQL Operator #1 2021.04.22, 2020.09.10 Crunchy PostgreSQL Operator #1 1. Crunchy PostgreSQL Operator 소개 2. PostgreSQL Operator Configuration 3. Create a PostgreSQL Cluster (Multi-Tenancy) 4. pgAdmin4 Crunchy PostgreSQL Operator #2 5. High-Availability 6. Disaster Recovery: Backups & Restores 7. Monitoring 8. pgBouncer 1. Crunchy PostgreSQL Operator 소개 - Crunchy PostgreSQL Operator 4.4.1 https://access.crunchyda.. 2021. 9. 23.
Elastic Cloud on Kubernetes (ECK) 2021.05.20, 2020.09.21 1. What is Elastic Cloud on Kubernetes (ECK) - Elastic Cloud on Kubernetes automates the deployment, provisioning, management, and orchestration of Elasticsearch, Kibana and APM Server on Kubernetes based on the operator pattern. - Supported versions (ECK 1.4.1) ✓ kubectl 1.11+ ✓ Kubernetes 1.12+ or OpenShift 3.11+ ✓ Google Kubernetes Engine (GKE), Azure Kubernetes Service.. 2021. 9. 22.
Redis cluster 2021.05.20, 2021.01.20 1. Redis cluster - Redis is an advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs. - Redis cluster chart bootstraps a Redis deployment on a Kubernetes cluster using the Helm package manager. - Reference https://redis.io/ https://bitnami.com/stack/r.. 2021. 9. 22.
Strimzi #4 Performance test 2020.09.04 1. 개요 - 별도의 튜닝 없이 초 간단하게 Kubernetes 환경에서 동작하는 Kafka 성능 측정 2. Performance test - Test # 1 ✓ Produce message: max 132.3K/sec ✓ Consumer message: max 229.1K/sec % kafka-producer-perf-test.sh --topic my-topic --num-records 10000000 --record-size 100 --throughput -1 --producer-props bootstrap.servers=14.52.244.135:30170 792577 records sent, 158483.7 records/sec (15.11 MB/sec), 1020.3 ms av.. 2021. 9. 22.
Strimzi #3 Monitoring 2020.09.01 1. 개요 - Strimzi를 모니터링 하기 위해 Prometheus, Grafana, Jaeger를 구성하고 Strimzi 설정을 변경 - Environments prometheus operator 0.38 Prometheus 2.16 Grafana 6.3.0 Strimzi 0.19 Kafka 2.5.0 2. Creating kafka cluster with metrics a. Deploying a Kafka cluster with Prometheus metrics configuration - Strimzi uses the Prometheus JMX Exporter to expose JMX metrics from Kafka and ZooKeeper using an HTTP endpo.. 2021. 9. 22.
Strimzi #2 Configuration 2020.08.20 1. Strimzi ? - Strimzi simplifies the process of running Apache Kafka in a Kubernetes cluster. - https://strimzi.io/docs/operators/latest/quickstart.html - Environments (2020.08.20) Strimzi 0.19.0 Kafka 2.5.0 Kubernetes 1.15.12 2. Strimzi Installation a. Downloading Strimzi $ wget https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.23.0/strimzi-0.23.0.tar.gz $ tar xz.. 2021. 9. 21.
Strimzi #1 Overview (0.19.0) 2020.08.20 1. Key features - Strimzi simplifies the process of running Apache Kafka in a Kubernetes cluster. - The Operators provided with Strimzi are purpose-built with specialist operational knowledge to effectively manage Kafka. - https://strimzi.io/docs/operators/latest/overview.html#key-features-kafka_str 2. Kafka - Apache Kafka is an open-source distributed publish-subscribe messaging syst.. 2021. 9. 21.
RabbitMQ Cluster Operator 2021.01.20 1. 개요 - RabbitMQ ✓ RabbitMQ is an open-source message-broker software (sometimes called message-oriented middleware) that originally implemented the Advanced Message Queuing Protocol (AMQP) and has since been extended with a plug-in architecture to support Streaming Text Oriented Messaging Protocol (STOMP), MQ Telemetry Transport (MQTT), and other protocols. - Message queue pattens ht.. 2021. 9. 21.
GPU Operator Install on Ubuntu 2021.6.9 1. Environments - Softwares ✓ Ubuntu 18.04.5 LTS (Bionic Beaver), Kubernetes 1.16.15, Docker 19.03.15 ✓ NVIDIA Driver 460.73.01, cuda-libraries-11-2, libcudnn8_8.2.1.32 - 별도 설치 ✓ GPU Operator 1.7.0 NVIDIA k8s device plugin 0.9.0 NVIDIA container toolkit 1.7.0 NVIDIA DCGM-exporter 2.1.8-2.4.0 Node Feature Discovery 0.6.0 GPU Feature Discovery 0.4.1 - GPU Card ✓ NVIDIA Tesla V100 2. NVIDI.. 2021. 9. 21.