菱角

菱角

k8s部署单节点postgres

给postgres服务器节点打标签 kubectl get node --show-labels=true kubectl label nodes k8s-02 postgres-server=master postgres服务器节点创建目录 mkdir -p /home/postgres/data/data 编辑部署文件postgres.yaml apiVersion: v1 kind: Namespace metadata: name: k8s-postgres --- apiVersion: v1 kind: Service metadata: labels: app: postgres-master-out name: postgres-master-out namespace: k8s-postgres spec: type: NodePort ports: - port: 5432 targetPort: 5432
菱角

k8s部署单节点zookeeper

给zookeeper服务器节点打标签 kubectl get node --show-labels=true kubectl label nodes sd-redis zookeeper-server=master zookeeper服务器节点创建目录 mkdir -p /home/zookeeper/conf /home/zookeeper/data /home/zookeeper/datalog 编辑部署文件zookeeper.yaml apiVersion: v1 kind: Namespace metadata: name: k8s-zookeeper --- apiVersion: v1 kind: Service metadata: labels: app: zookeeper-cs name: zookeeper-cs namespace: k8s-zookeeper spec: type: NodePort ports:
菱角

使用harbar搭建私有容器仓库

下载离线安装包 mkdir -p /home/harbar/data cd /home/harbar wget https://github.com/goharbor/harbor/releases/download/v2.6.2/harbor-online-installer-v2.6.2.tgz tar -zxf harbor-online-installer-v2.6.2.tgz cd harbor cp harbor.yml.tmpl harbor.yml 编辑配置文件 harbor.yml tee /home/harbar/harbor/harbor.yml <<-'EOF' # Configuration file of Harbor # The IP address or hostname to access admin UI and registry service. # DO NOT use localhost or 127.0.0.1, because Harbor needs to be accessed by external clients. hos
菱角