代码拉取完成,页面将自动刷新
同步操作将从 devops运维开发/gopub 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
apiVersion: apps/v1
kind: Deployment
metadata:
name: gopub
namespace: default
labels:
name: gopub
spec:
replicas: 1
selector:
matchLabels:
name: gopub
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
name: gopub
spec:
restartPolicy: Always
hostAliases:
- ip: "192.168.162.66"
hostnames:
- "gitlab.example.org"
- "packagist.example.org"
- "toran.example.org"
- ip: "192.168.143.41"
hostnames:
- "jenkins.example.org"
- ip: "127.0.0.1"
hostnames:
- "mysql"
containers:
- name: gopub
image: "lc13579443/gopub:latest"
imagePullPolicy: Always
securityContext:
privileged: true
ports:
- containerPort: 8192
name: http-port
env:
- name: MYSQL_HOST
value: '127.0.0.1'
- name: MYSQL_PORT
value: '3306'
- name: MYSQL_USER
value: 'root'
- name: MYSQL_PASS
value: '123456'
- name: MYSQL_DB
value: 'walle'
resources:
limits:
cpu: 2
memory: 4096Mi
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: localtime
mountPath: /etc/localtime
readOnly: true
- name: cgroup
mountPath: /sys/fs/cgroup
readOnly: true
- name: mysql
image: "mysql:5.7"
imagePullPolicy: Always
env:
- name: MYSQL_ROOT_PASSWORD
value: '123456'
ports:
- containerPort: 3306
name: mysql-port
resources:
limits:
cpu: 2
memory: 4096Mi
requests:
cpu: 100m
memory: 200Mi
volumeMounts:
- name: localtime
mountPath: /etc/localtime
readOnly: true
- name: cgroup
mountPath: /sys/fs/cgroup
readOnly: true
- name: mysql-data
mountPath: /var/lib/mysql
terminationGracePeriodSeconds: 30
volumes:
- name: localtime
hostPath:
path: /etc/localtime
- name: cgroup
hostPath:
path: /sys/fs/cgroup
- name: mysql-data
hostPath:
path: /data/gopub-mysql
---
apiVersion: v1
kind: Service
metadata:
name: gopub
namespace: default
labels:
name: gopub
spec:
type: NodePort
selector:
name: gopub
ports:
- name: gopub
port: 8192
nodePort: 8192
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。