首页
技术小册
AIGC
面试刷题
技术文章
MAGENTO
云计算
视频课程
源码下载
PDF书籍
「涨薪秘籍」
登录
注册
介绍
1.1. 原理
1.1.1. IC 流量转发
1.1.2. IC Pod 内部逻辑
1.1.3. IC 进程内部逻辑
部署
2.1. 版本说明
2.2. 使用清单文件部署
2.2.1. 配置RBAC
2.2.2. 创建CRD
2.2.3. 部署控制器
2.2.4. LB配置
2.2.5. 验证
2.2.5.1. 默认404页面
2.2.5.2. ingress http 验证
2.2.5.3. ingress https 验证
配置
3.1. Nginx全局配置
3.1.1. 命令行参数
3.1.2. ConfigMap
3.1.2.1. 常规自定义配置
3.1.2.2. 日志配置
3.1.2.3. SSL/TLS 配置
3.1.2.4. Listeners配置
3.1.2.5. Backend配置
3.1.2.6. Snippets & Custom 模板
3.1.2.7. 链路追踪
3.2. Ingress资源配置
3.2.1. annotations
3.2.1.2. Listeners
3.2.1.3. General
3.2.1.4. URI/Header
3.2.1.5. Auth / TLS
3.2.1.6. upstream
3.2.1.7. sinppets
3.2.3. 案例
3.2.3.1. 简单demo
3.2.3.2. kubernetes dashboard
3.2.3.3. jenkins
3.3. CRD配置
3.3.1. TransportServer
运维
4.1. 日志
4.2. 状态页
4.3. 监控
当前位置:
首页>>
技术小册>>
Kubernets合辑2-部署Ingress
小册名称:Kubernets合辑2-部署Ingress
Jenkins 部署完毕后,如果用户需要访问jenkins dashboard,那么通常建议配置 ingress ,这样比 NodePort 更方便,至少不用携带端口。但是不合理的代理配置会导致jenkins提示反向代理错误。 jenkins.yaml: ``` apiVersion: v1 kind: Namespace metadata: name: devops --- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: jenkins-default namespace: devops spec: storageClassName: managed-nfs-storage accessModes: - ReadWriteMany resources: requests: storage: 5Gi --- apiVersion: apps/v1 kind: Deployment metadata: name: jenkins-default namespace: devops spec: replicas: 1 selector: matchLabels: app: jenkins instance: default template: metadata: labels: app: jenkins instance: default spec: containers: - name: jenkins-server image: jenkins/jenkins:2.344 ports: - name: http-port containerPort: 8080 - name: jnlp-port containerPort: 50000 volumeMounts: - name: jenkins-home mountPath: /var/jenkins_home resources: limits: cpu: 2048m memory: 2048Mi requests: cpu: 100m memory: 512Mi volumes: - name: jenkins-home persistentVolumeClaim: claimName: jenkins-default --- apiVersion: v1 kind: Service metadata: name: jenkins-default-web namespace: devops spec: type: ClusterIP selector: app: jenkins instance: default ports: - port: 8080 targetPort: http-port --- apiVersion: v1 kind: Service metadata: name: jenkins-default-jnlp namespace: devops spec: type: ClusterIP selector: app: jenkins instance: default ports: - port: 50000 targetPort: jnlp-port --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: jenkins-default namespace: devops annotations: nginx.org/client-max-body-size: 64m nginx.org/keepalive: "4" spec: ingressClassName: nginx rules: - host: jenkins-default.huanle.com http: paths: - path: / pathType: Prefix backend: service: name: jenkins-default-web port: number: 8080 tls: - hosts: - jenkins-default.huanle.com ```
上一篇:
3.2.3.2. kubernetes dashboard
下一篇:
3.3. CRD配置
该分类下的相关小册推荐:
Kubernets合辑3-kubernetes介绍
Kubernets合辑15-持续部署
Kubernets合辑14-日志收集
Kubernets合辑7-存储
Kubernets合辑9-资源约束
Kubernetes中文教程(六)
Kubernetes中文教程(四)
Kubernets合辑10-网络
Kubernetes中文教程(三)
Kubernets合辑6-服务发现
Kubernets合辑4-kubernetes入门
Kubernets合辑11-持续集成