apiVersion: v1
kind: Namespace
metadata:
name: openshift-console
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: webconsole-new
namespace: openshift-console
labels:
app: openshift-web-console-new
webconsole: "true"
spec:
selector:
matchLabels:
app: openshift-web-console-new
webconsole: "true"
strategy:
type: Recreate
template:
metadata:
labels:
app: openshift-web-console-new
webconsole: "true"
name: webconsole-new
spec:
containers:
- command:
- /opt/bridge/bin/bridge
- --public-dir=/opt/bridge/static
image: openshift/origin-console:latest
livenessProbe:
exec:
command:
- /bin/sh
- -i
- -c
- |-
if [[ ! -f /tmp/webconsole-config.hash ]]; then \
md5sum /var/webconsole-config/webconsole-config.yaml > /tmp/webconsole-config.hash; \
elif [[ $(md5sum /var/webconsole-config/webconsole-config.yaml) != $(cat /tmp/webconsole-config.hash) ]]; then \
exit 1; \
fi && curl -k -f http://0.0.0.0:9000
name: webconsole
ports:
- containerPort: 9000
protocol: TCP
readinessProbe:
httpGet:
path: /healthz
port: 9000
scheme: HTTP
resources:
requests:
cpu: 100m
memory: 100Mi
---
kind: Service
apiVersion: v1
metadata:
name: webconsole-new
namespace: openshift-console
labels:
app: webconsole-new
spec:
ports:
- name: http
protocol: TCP
port: 80
targetPort: 9000
nodePort: 30000
selector:
app: openshift-web-console-new
type: NodePort
---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
creationTimestamp: null
name: system:admin
namespace: openshift-console
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
subjects:
- kind: ServiceAccount
name: default
namespace: openshift-console
官方 kubernetes 部署 openshift web管理界面
最新推荐文章于 2025-03-05 22:02:20 发布