代码拉取完成,页面将自动刷新
同步操作将从 comsince/universe_push 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。