k8s StatefulSet启用Redis Cluster搭建

一、安装和配置Redis 1、无数据持久化的redis 这里先根据启用一个最简单的 Redis 服务: 1apiVersion: apps/v1 2kind: StatefulSet 3metadata: 4 name: redis 5spec: 6 selector: 7 matchLabels: 8 app: redis 9 serviceName: redis 10 replicas: 3 11 template: 12 metadata: 13 labels: 14 app: redis 15 spec: 16 containers: 17 - name: redis 18 image: redis:latest 19 ports: 20 - containerPort: 6379 21 volumeMounts: 22 - name: data 23 mountPath: /data 24 volumeClaimTemplates: 25 - metadata: 26 name: data 27 spec: 28 accessModes: ['ReadWriteOnce'] 29 storageClassName: "csi-disk" 30 resources: 31 requests: 32 storage: 1Gi 启动登录后,会发现在/data 目录……

Continue reading

Huaweicloud helm安装PostgreSQL HA

在 《Huaweicloud CCE helm install Bitnami PostgreSQL》写了下如何通过helm部署单节点 PG 和 master/standy架构。但神奇的会发现 Bitnami 除了提供这个helm chart外,还有一个 PostgreSQL HA 的chart,两者之间有何异同呢? 一、PostgreSQL-HA 和 PostgreSQL Helm chart之间的差异 有两……

Continue reading

Huaweicloud CCE helm install Bitnami PostgreSQL

Bitnami is a company that provides pre-packaged software stacks for popular open source applications(Belong the VMware Sub-company). Here are some of the benefits of using Bitnami stacks: Easy to install and use Regularly updated with security patches and bug fixes Available for a variety of platforms Wide range of applications available Community support So we are install the postgresql to Huaweicloud CCE platform (A famous k8s commercial platform ) today . 1. Install the helm3 Note: we need install the newest version from helm official website , we cannot use the huaweicloud official document (the website offer the old helm version , there will be have the error Error: parse error at (postgresql/templates/_helpers.tpl:164): unclosed action) Install helm command like this: 1curl https://raw.githubusercontent.com/kubernetes/helm/master/scripts/get-helm-3 > get_helm.sh 2chmod 700 get_helm.sh 3./get_helm.sh 4 5# or one line command like this: 6curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash 2.……

Continue reading

k8s install PostgreSQL StatefulSet

In the following set of exercises StatefulSets are presented in a practical manner. The PostgreSQL [11] RDBMS is used as an example as the database is both widely known and of great utility to any developer. The goal of the exercises are not to build a production grade automation for PostgreSQL but to illustrate StatefulSet concepts. Designing the StatefulSet In order to create the PostgreSQL StatefulSet we proceed with the following steps: Identify or build (a) container image(s) Specify a headless Service Specify a StatefulSet Provision the Service and StatefulSet Conduct simple experiments Start with finding a container image. The Container Image An essential part of the StatefulSet for PostgreSQL is the database server itself. Luckily, there is no need to containerize PostgreSQL as this as already been done. Hence, use the official PostgreSQL Docker Image found at Docker Hub [1].……

Continue reading

AWS、Azure、GCP的生成式AI产品

ChatGPT, which is mainly invested by Microsoft, sparked a wave of generative AI. Corresponding google launched bard to fight and defend. The top three cloud vendors AWS, Azure, and GCP have also launched cloud services related to generative AI. This article summarizes the three corresponding main products. ChatGPT引发了生成式AI的火热浪潮,ChatGPT主要是由微软进行投资的。对应的Google推出了bard以对抗和防守。前三的云厂商AWS、Azure、GCP也推出了生成式AI相关……

Continue reading

Linux上容器化运行C#应用

早期的.net闭源且仅能跑在windows平台上(Linux当时也有开源的mono),2014 年底,Scott Guthrie宣布微软将开源 .NET。所以当前基于.net开发的应用或站点就有了更多的选择。 近期遇到的一个项目使用C# .net开发的,由于历史原因对应的容器化平台也是在w……

Continue reading

Excel函数实现多国时区转换

年龄略大了以后,人就有些懒了,喜欢以最简单的方式实现想要的功能。就像今天总结的这个诉求,由于墨西哥以后不再切换夏令时,所以在会议系统上约的沟通会议,对应的人收到后反馈和实际开会的时间差了一个小时。作为一个有“吹毛求疵”式强迫症的家伙,怎么能让这样的事发生。所以在每次会议通知完,也……

Continue reading

在k8s中创建pod时发生了什么

当你在 Kubernetes 中创建 Pod 时会发生什么?一个令人惊讶的简单任务揭示了一个复杂的工作流程,该工作流涉及集群中的多个组件。 1、kubectl执行YAML文件 让我们从显而易见的开始:kubectl 将 YAML 定义发送到 API 服务器。在此步骤中,kubectl执行如下步骤: 使用 OpenAPI (Swagger) 发现 API Endpoints 协商……

Continue reading

k8s调度深入刨析

调度程序决定 pod 在集群中的部署位置,这听起来像是一项简单的工作,但它相当复杂!当使用 kubectl 提交部署时,API 服务器会收到请求,并将资源存储在 etcd 中。 一、谁创建了 Pod? 一个常见的误解是创建 pod 是调度程序的工作。相反,控制器管理器创建它们(以及关联的 ReplicaSet)。 此时,pod 在 etcd 中……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI AWS Ansible Atlassian Azure BMC Blockchain Brocade CDH5 CL210 Cobbler Confd C语言 DDOS DISTINCT DNS Duckdb EKS ELK GCP Ghost Git Glusterfs Go Godaddy Grafana HBA HCIE Hotspot HttpWatch IBM IIS IOS InfluxDB Ingress InnoDB JavaScript Jinja2 KVM Keepalived Mplayer MySQLdb Netlify OpenResty PM PostgreSQL QoS RH318 RH442 RHCA RHCE RHEV RSA SRE SecureCRT Statuscode SublimeText2 TC Telecom Tencentcloud VBA aira2 alpine android anpic apache apm apparmor appfog apr apt-get aria2 array atop audit awk awstats axel backdoor backup bamboo bash bat benchmark bigdata bin bind bitwise book bootstrap bsd c1000 cache capistrano catlog centos centos7 chatops chattr check_mk checkinstall cisco clearall clickhouse cloud-desktop cmdb cms collectd comm compress conver corosync cpu crontab crunchbang css curl date decode dell desktop devops df dhcp diff diskpart django docker dos2unix dpkg drupal etcd excel fail2ban fastcgi fdisk fiddler find firewalld flask flvtool ftp function fuser geek gin github gitlab glances golang google gooupadd graphviz gravatra grep grub2 hadoop haproxy hardware heartbeat helm hexdump hhvm history html http/html/web httplogs https huawei huaweicloud hugo icmp iconv ifconfig inotify iopp ipmitool iptables iredmail iscsi isito it-news java jdk jenkins jira join joomla k3s k8s kdump kernel kingate lamp last leetcode lib light-http linux linux高级篇 ln ls lsi lsof lvm lvs mac mail man mark markdown matplotlib maven memcached microservice mimikatz mkdocs mkpasswd mmonit mod_jk mongodb monit monitor mono moodle mosh mount mpm mrtg mtr my.cnf mysql mysqlbinlog mysqld_multi mysqldump mysqlhotcopy nagios nc nethogs nexus nfs nginx nmon nocatlog node.js nrpe ntfs ntop ntp obs ocr open-falcon openbox opencv openldap openssl openstack oracle oswatch paas pacemaker pam pandas parted pcp pcre pdf percona perl pexpect pgrep php php-fpm ping plsql develope postfix powershell prettify proc prometheus puppeteer pushd pwgen pxe pyecharts python python模块 radmin raid rdesktop read redhat redis redmine regex rh134 rhel7 rhel8 rm rman rootkit route rpm rpmforge rrdtool rsync rsyslog safe saltstack samba scapy screen sed selenium selinux seo seq session set shc sheepdog shell shopt sitemap skydns smokeping snffier snmp socket soft sort spider sql sqlserver squid ss ssh sshpass strace strings su sudo suse svn sysbench syslog-ng sysstat systemd t tar tcpcopy tcpdump tech telnet tengine test testlink threads time tmux tomcat touch tr tsar twisted ubuntu udev ulimit unix unixbench user-agent useradd varnish vbs vercel vi vim visudo vmstat vmware vnc voice vpn vscode vsftp vsftpd vue watchdog web webcam webistrano wget wiki windows wol wordpress workshop wsl x-windows xampp xcache xmllint xtrabackup yule yum zabbix zeromq zip zonetime zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 意林 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta