1 Star 0 Fork 131

朱海堂/universe_push

forked from comsince/universe_push 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
universe-kube-deployment.yml 4.84 KB
一键复制 编辑 原始数据 按行查看 历史
apiVersion: v1
kind: Service
metadata:
name: mysql
labels:
app: mysql-db
spec:
ports:
- port: 3306
targetPort: 3306
name: mysql
selector:
app: mysql-db
clusterIP: None
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-pv
labels:
type: local
spec:
capacity:
storage: 5Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /data/mysql
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: mysql-pv-claim
labels:
app: push-group-mysql
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 5Gi
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: mysql
labels:
app: mysql-db
spec:
template:
metadata:
labels:
app: mysql-db
spec:
containers:
- args:
- mysqld
- --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci
env:
- name: MYSQL_PASSWORD
value: test
- name: MYSQL_ROOT_PASSWORD
value: "123456"
- name: MYSQL_USER
value: test
name: mysql
image: mysql:5.7
ports:
- containerPort: 3306
volumeMounts:
- name: mysql-persistent-storage
mountPath: /var/lib/mysql
volumes:
- name: mysql-persistent-storage
persistentVolumeClaim:
claimName: mysql-pv-claim
---
apiVersion: v1
kind: Service
metadata:
name: zookeeper
labels:
app: zookeeper-servicefind
spec:
ports:
- port: 2181
targetPort: 2181
name: zookeeper
selector:
app: zookeeper-servicefind
clusterIP: None
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: zookeeper
labels:
app: zookeeper-servicefind
spec:
template:
metadata:
labels:
app: zookeeper-servicefind
spec:
containers:
- env:
- name: TZ
value: Asia/Shanghai
name: zookeeper
image: zookeeper:3.5.5
ports:
- containerPort: 2181
name: zookeeper
---
apiVersion: v1
kind: Service
metadata:
name: kafka
labels:
app: kafka-push-connector
spec:
ports:
- port: 9092
targetPort: 9092
name: kafka
selector:
app: kafka-push-connector
clusterIP: None
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: local-kafka-pv
labels:
type: local
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: /data/kafka
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: kafka-pv-claim
labels:
app: push-connector-kafka
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 1Gi
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: kafka
labels:
app: kafka-push-connector
spec:
template:
metadata:
labels:
app: kafka-push-connector
spec:
containers:
- env:
- name: KAFKA_ADVERTISED_PORT
value: "9092"
- name: KAFKA_ADVERTISED_HOST_NAME
value: kafka
- name: KAFKA_ZOOKEEPER_CONNECT
value: zookeeper:2181
- name: KAFKA_BROKER_ID
value: "1"
image: wurstmeister/kafka
name: kafka
ports:
- containerPort: 9092
volumeMounts:
- name: kafka-persistent-storage
mountPath: /var/lib/kafka
restartPolicy: Always
volumes:
- name: kafka-persistent-storage
persistentVolumeClaim:
claimName: kafka-pv-claim
---
apiVersion: v1
kind: Service
metadata:
name: push-connector
labels:
app: push-connector-dubbo
spec:
ports:
- port: 6789
nodePort: 30789
targetPort: 6789
name: push-connector
selector:
app: push-connector-dubbo
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: push-connector
labels:
app: push-connector-dubbo
spec:
template:
metadata:
labels:
app: push-connector-dubbo
spec:
containers:
- env:
- name: TZ
value: Asia/Shanghai
name: push-connector
image: comsince/push-connector
ports:
- containerPort: 6789
---
apiVersion: v1
kind: Service
metadata:
name: push-group
labels:
app: push-group-web
spec:
ports:
- port: 8081
nodePort: 30081
targetPort: 8081
name: push-group
selector:
app: push-group-web
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: push-group
labels:
app: push-group-web
spec:
template:
metadata:
labels:
app: push-group-web
spec:
containers:
- env:
- name: TZ
value: Asia/Shanghai
name: push-group
image: comsince/push-group
ports:
- containerPort: 8081
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/938341990/universe_push.git
git@gitee.com:938341990/universe_push.git
938341990
universe_push
universe_push
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385