In the backend, when there are distributed demands, we often use 64-bit numeric types to represent field types. However, the frontend does not support numeric types longer than 16 bits, so when larger long and ulong values are transmitted to the backend, their…

2021年7月12日 1条评论 1390点热度 0人点赞 痴者工良 阅读全文

在后端中,当有分布式需求时,我们常常使用 64位 的数字类型表示字段类型,但是前端并不支持超过 16 位长度的数值类型,所以后端长度较大的 long、ulong 数值传到后端,其准确度就已经丢失。 解决方法就是将 ulong、long 转为字符串,传递给后端。 public class TentantQueryDto { public ulong Id { get; set; } } 这是一个后端模型, Id 为 64 位数值,我们要做到前端传递 string,自动转 ulong;后端传递 ulong,自动返回 s…

2021年7月12日 1条评论 5782点热度 0人点赞 痴者工良 阅读全文

Introduction CZGL.ProcessMetrics is a metrics library that records information about the program's GC (Garbage Collection), CPU, memory, machine network, disk space, etc. It uses Prometheus to collect this information and then displays it using Grafana. Video …

2021年7月4日 0条评论 1356点热度 0人点赞 痴者工良 阅读全文

导读 CZGL.ProcessMetrics 是一个 Metrics 库,能够将程序的 GC、CPU、内存、机器网络、磁盘空间等信息记录下来,使用 Prometheus 采集信息,然后使用 Grafana 显示。 视频地址: https://www.bilibili.com/video/BV18y4y1K7Ax/ 效果图预览: 安装 ProcsssMetrics 只需要通过 Nuget 安装一个库,即可快速为程序添加资源监视。 新建一个 ASP.NET Core 应用, Nuget 中搜索 CZGL.Process…

2021年7月4日 0条评论 3781点热度 0人点赞 痴者工良 阅读全文

Remote Deployment of .NET Core/Framework to IIS via Jenkins Pipeline Introduction In this chapter, we will discuss how to compile .NET Core and .NET Framework projects on Windows Jenkins and remotely deploy them to IIS. Windows First, we need to set up the req…

2021年6月25日 0条评论 5479点热度 0人点赞 痴者工良 阅读全文

Jenkins 流水线远程部署 .NET Core/Framework 到 IIS 导读 在本章中,将会介绍在 Windows Jenkins 上,编译 .NET Core、.NET Framework 项目,以及远程部署到 IIS 中。 Windows 我们先在 Windows 上安装好相应的环境。 Jenkins 依赖于 JDK 11,请自行查找方法安装。 在 https://www.jenkins.io/download/ 中可以下载到 Windows Jenkins 版本的安装包,下载完毕后,直接安装即可,…

2021年6月25日 0条评论 4452点热度 0人点赞 痴者工良 阅读全文

目录 Introduction Deploying Jenkins Installing Plugins Pulling Images Creating Jenkinsfile Script Building Pipeline Observation Jenkins Build Automation for .NET Core Release Images Introduction In this chapter, we will introduce how to deploy and start Jenkins …

2021年6月24日 0条评论 4032点热度 0人点赞 痴者工良 阅读全文

目录 导读 部署 Jenkins 安装插件 拉取镜像 制作 Jenkinsfile 脚本 构建流水线 观察 Jenkins 构建自动化 .NET Core 发布镜像 导读 在本章中,将介绍如何在 Linux 下使用 Docker 部署、启动 Jenkins,编写脚本,自动化构建 .NET Core 应用,最终将 .NET Core 应用打包为 Docker 镜像。 部署 Jenkins 请提前在 Linux 上安装 Docker,在 Linux 中,我们使用 Docker 启动 Jenkins,这样可以避免手动安装…

2021年6月24日 0条评论 4152点热度 0人点赞 痴者工良 阅读全文

目录 Kubectl Command Overview Installing Kubernetes-Dashboard RESTful API Authentication Annotations Pod YAML Structure Configuration Kubectl Command Overview In the previous sections, we learned some Kubernetes knowledge. Now let's list all the kubectl commands…

2021年4月29日 1条评论 9450点热度 0人点赞 痴者工良 阅读全文

目录 Kubectl 命令大全 安装 Kubernetes-Dashboard RESTful API 鉴权 注解 Pod YAML 结构 配置 Kubectl 命令大全 在前面,我们学习到了一些 Kubernetes 知识,现在列出 kubectl 的所有命令以及其缩写形式,供翻阅查询。 kubectl 命令格式: kubectl [command] [type] [Name] [flag] all events (ev) podsecuritypolicies (psp) certificatesigningr…

2021年4月29日 1条评论 20947点热度 0人点赞 痴者工良 阅读全文

Table of Contents Update Rollout Rollback Scale Deployment Direct Set Pod Horizontal Autoscaling Proportional Scaling Pause Deployment Rollout This article discusses the updating and rolling back of Pods, and is relatively short. Update You can check the versi…

2021年4月25日 0条评论 9040点热度 0人点赞 痴者工良 阅读全文

目录 更新 上线 会滚 缩放 Deployment 直接设置 Pod 水平自动缩放 比例缩放 暂停 Deployment 上线 本篇内容讨论 Pod 的更新和回滚,内容不多。 更新 打开 https://hub.docker.com/_/nginx 可以查询 nginx 的镜像版本,我们可以先选择一个旧一点的版本。 首先,我们创建一个 Nginx 的 Deployment,副本数量为 3。 kubectl create deployment nginx --image=nginx:1.19.0 --replicas…

2021年4月25日 0条评论 11327点热度 0人点赞 痴者工良 阅读全文

Table of Contents Srevice Creation and Phenomenon of Service Service Definition Endpoint Slices Creating Endpoint and Service Service Creating Application Creating Endpoint The deployment of a Deployment and Service has been introduced in A Brief Introduction …

2021年4月23日 0条评论 10594点热度 0人点赞 痴者工良 阅读全文

目录 Srevice Service 的创建及现象 Service 定义 Endpoint slices 创建 Endpoint、Service Service 创建应用 创建 Endpoint 浅入Kubernetes(8):外网访问集群 中已经介绍过部署一个 Deployment 和 Service,本篇是它的补充,将会广泛地聊一下 Service。 文章地址 https://www.cnblogs.com/whuanle/p/14685430.html Srevice Service 是将运行在一组 Pods…

2021年4月23日 0条评论 7671点热度 0人点赞 痴者工良 阅读全文

目录 Labels and nodeSelector Label Selection Affinity and Anti-Affinity Taints and Tolerations Default System Taints Tolerations DaemonSet In our previous studies, we learned about Deployment and ReplicaSets, but the Pods are randomly scheduled to Worker nodes. …

2021年4月23日 0条评论 8076点热度 0人点赞 痴者工良 阅读全文

目录 标签和nodeSelector 标签选择 亲和性和反亲和性 污点和容忍度 系统默认污点 容忍度 DaemonSet 在前面的学习中,我们学到了 Deployment 部署,以及副本数(ReplicaSet),但是 Pod 部署到哪个 Worker 节点是随机,即使有 3个 Woker 和设定 3个 副本,不一定每个 Node 刚刚好运行一个 Pod,也可能其中 Node 运行着三个副本。 在本篇我们将探究 Kubernetes 中的 DaemonSet、容忍度、亲和性、Label、选择器等概念,以便控制 po…

2021年4月23日 0条评论 11920点热度 0人点赞 痴者工良 阅读全文

This article mainly introduces the architectural components of Kubernetes. Previously, we have learned about kubeadm and kubectl, which are two command-line tools that make up K8s. During the cluster setup, we also learned about the master and worker nodes; so…

2021年4月22日 0条评论 7070点热度 0人点赞 痴者工良 阅读全文

本篇主要介绍 Kubernetes 中的架构组成,在前面我们已经学习到了 kubeadm、kubectl,这两个命令行工具是 k8s 组成之一。而前面在搭建集群时,也学到了 master、worker 节点;第一篇第二篇中也提前介绍了一些 k8s 的概念,这篇将会对这些 k8s 中关键的组件或结构组成进行讲述。 架构组成 我们可以看一下这两张图,所表示的都是关于 Kubernetes 集群的架构。 一个 kubernetes 集群是由一组被称为节点(Node)的机器或虚拟机组成,集群由 master、worker …

2021年4月22日 0条评论 10132点热度 0人点赞 痴者工良 阅读全文

In the previous articles, we learned some commands for kubeadm and kubectl, and we also learned how to use and configure Deployment, Service, and ReplicaSet. This article mainly introduces how to configure the network to allow external access to the cluster. B…

2021年4月21日 0条评论 4781点热度 0人点赞 痴者工良 阅读全文

在前面几篇文章中,我们学习了 kubeadm 、kubectl 的一些命令,也学会了 Deployment、Service、ReplicaSet 的用法以及配置。本篇的内容主要是介绍如何配置网络,使得能够在外部网络访问集群。 在开始之前,需要根据 浅入Kubernetes(6):CKAD认证中的部署教程、浅入Kubernetes(7):应用部署实例,Deployment、Service、ReplicaSet 这两篇文章中的过程,部署好集群以及部署 nginx 应用。 查询 Service 关于 Service,读者…

2021年4月21日 0条评论 7852点热度 0人点赞 痴者工良 阅读全文
1222324252654