1 Star 0 Fork 1

hundage/k8s-deploy-p8s-granfa

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
alertmanager-deployment.yaml 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
jackios 提交于 2021-09-14 17:36 . this commit all yaml of deploying k8s
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
name: alertmanager
name: alertmanager
namespace: szxc
spec:
replicas: 1
selector:
matchLabels:
app: alertmanager
template:
metadata:
labels:
app: alertmanager
spec:
containers:
- image: prom/alertmanager:v0.16.1
name: alertmanager
ports:
- containerPort: 9093
protocol: TCP
volumeMounts:
- mountPath: "/alertmanager"
name: data
- mountPath: "/etc/alertmanager"
name: config-volume
resources:
requests:
cpu: 50m
memory: 50Mi
limits:
cpu: 200m
memory: 200Mi
volumes:
- name: data
emptyDir: {}
- name: config-volume
configMap:
name: alertmanager
---
apiVersion: v1
kind: Service
metadata:
labels:
app: alertmanager
annotations:
prometheus.io/scrape: 'true'
name: alertmanager
namespace: szxc
spec:
type: NodePort
ports:
- port: 9093
targetPort: 9093
nodePort: 31113
selector:
app: alertmanager
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hundage/k8s-deploy-p8s-granfa.git
git@gitee.com:hundage/k8s-deploy-p8s-granfa.git
hundage
k8s-deploy-p8s-granfa
k8s-deploy-p8s-granfa
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385