PART Ⅰ : 容器云OPENSHIFT
- 安装
- 数据持久化
- 集群管理
- 数据持久化
- 管理
- 网络
- 安全审计
- 工具应用部署
PART Ⅱ:容器云 KUBERNETES
- 基础
- 原理
- 系统应用/网络CNI/TRaefik
- 安装
- 集群管理
- 用户认证ServiceAccount与授权策略RBAC
- K8S应用管理工具Helm
- 问题
- 辅助工具
- Doing:K8S 多集群管理与网络互联
- VM On K8S
PART Ⅲ:持续集成与持续部署
- CICD优化总结
- Jenkins
- Gitlab
- Drone
- Nexus
- 配置
- 使用OrientDB Console在DB层面修改配置
- [设置SMTP邮件服务](https://www.wenjiangs.com/doc/krrcu7ebin9hh
- 仓库管理
- 数据备份恢复
- API
- Jenkins相关插件
- 配置
- SonarQube静态代码扫描分析
- LDAP
- Apollo
- 项目管理工具
- Jira
- Redmine
- Harbor
- Vault
- Alfred
- Web IDE: VSCode
- DolphinScheduler
PART Ⅴ:日志/监控/告警
- Logging
- Kafka/Zookeeper
- Filebeat
- Metrics
- Tracing
- Sentry日志聚合告警平台
PART Ⅵ:基础
- Docker
- Shell脚本
- Mave
- git
- 正则表达式
- SSL/TLS
- Ceph
- 性能压力测试
- PXE+Kickstart
- netboot.xyz
- Tool
- Windows
- MacOS小技巧
- Linux
- Linux排错优化
- iptables详解
- MySQL
- Redis
- 负载均衡与代理
- 代理服务器
- Nginx
- GitBook
- Telegram机器人
- OpenVPN Server
- iDRAC
- vSphere
- Raspberry Pi树莓派
- 钉钉机器人
- Aliyun CLI
- 音、视频处理工具:fffmpeg
- 图片处理工具:Imagemagick
- PDF处理工具:Ghostscript
- Nvidia
- Virtualbox 虚拟机管理
- 阿里云产品使用总结
- RustDesk:可自建远程控制软件
- Poste:自建邮件服务器
- 使用 Jlink构建最小化依赖的 JRE 环境
- Aria2
- Asuswrt-Merlin
- Trap:Shell脚本信号跟踪
- 零散知识汇总
- BarkServer通知
- Synology
PART Ⅶ:数据存储、处理
PART VIII:CODE
- Python学习笔记
- 基础语法
- statik 将静态资源文件打包到二进制文件中
- HTML/CSS 学习笔记
- JavaScript学习笔记
PART X:HACKINTOSH
PART XI:安全
文章来源于网络收集而来,版权归原创者所有,如有侵权请及时联系!
Kibana 容器化部署
DeploymentConfig
apiVersion: apps.openshift.io/v1
kind: DeploymentConfig
metadata:
labels:
app: kibana
name: kibana
spec:
replicas: 1
selector:
app: kibana
deploymentconfig: kibana
strategy:
activeDeadlineSeconds: 21600
resources: {}
rollingParams:
intervalSeconds: 1
maxSurge: 25%
maxUnavailable: 25%
timeoutSeconds: 600
updatePeriodSeconds: 1
type: Rolling
template:
metadata:
labels:
app: kibana
deploymentconfig: kibana
spec:
containers:
- env:
- name: ELASTICSEARCH_USERNAME
value: kibana
- name: ELASTICSEARCH_PASSWORD
value: uLAWAfW1b7UHZdHEigCW
- name: TZ
value: Asia/Shanghai
image: docker.elastic.co/kibana/kibana:7.1.1
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 5601
timeoutSeconds: 1
name: kibana
ports:
- containerPort: 5601
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 60
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: 5601
timeoutSeconds: 1
resources:
limits:
cpu: "1"
memory: 1500Mi
requests:
cpu: 500m
memory: 800Mi
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
test: false
triggers:
- type: ConfigChange
SVC
apiVersion: v1
kind: Service
metadata:
labels:
app: kibana
name: kibana
spec:
ports:
- name: 5601-tcp
port: 5601
protocol: TCP
targetPort: 5601
selector:
deploymentconfig: kibana
sessionAffinity: None
type: ClusterIP
Route
apiVersion: route.openshift.io/v1
kind: Route
metadata:
labels:
app: apache-kibana
name: kibana
spec:
port:
targetPort: 5601-tcp
to:
kind: Service
name: kibana
weight: 100
wildcardPolicy: None
Deployment
apiVersion: apps/v1beta2
kind: Deployment
metadata:
labels:
app: kibana
name: kibana
namespace: elk
spec:
progressDeadlineSeconds: 600
replicas: 1
revisionHistoryLimit: 10
selector:
matchLabels:
app: kibana
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
type: RollingUpdate
template:
metadata:
labels:
app: kibana
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- node1.k8s.curiouser.com
containers:
- image: kibana/kibana:7.2.0
imagePullPolicy: IfNotPresent
name: kibana
envFrom:
- secretRef:
name: kibana-config-env
env:
- name: TZ
value: Asia/Shanghai
- name: ELASTICSEARCH_HOSTS
value: '["http://elasticsearch.elk.svc:9200"]'
ports:
- containerPort: 5601
name: web
protocol: TCP
resources:
requests:
memory: "1Gi"
cpu: "0.5"
limits:
memory: "2Gi"
cpu: "1"
readinessProbe:
failureThreshold: 1
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
tcpSocket:
port: 5601
timeoutSeconds: 1
livenessProbe:
failureThreshold: 1
initialDelaySeconds: 60
periodSeconds: 60
successThreshold: 1
tcpSocket:
port: 5601
timeoutSeconds: 1
securityContext:
allowPrivilegeEscalation: false
capabilities: {}
privileged: false
procMount: Default
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
dnsConfig: {}
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
Secret
apiVersion: v1
kind: Secret
metadata:
labels:
app: kibana
name: kibana-config-env
namespace: elk
stringData:
ELASTICSEARCH_USERNAME: kibana
ELASTICSEARCH_PASSWORD: kibana
Service
apiVersion: v1
kind: Service
metadata:
name: kibana
namespace: elk
labels:
app: kibana
spec:
ports:
- port: 5601
name: web
selector:
app: kibana
Ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: kibana
namespace: elk
spec:
rules:
- host: kibana.apps.k8s.curiouser.com
http:
paths:
- path: /
backend:
serviceName: kibana
servicePort: 5601
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论