摘要: 1.部署容器化应用 [root@k8smaster ~]# kubectl create deployment nginx --image=nginxdeployment.apps/nginx created 2.暴露该服务 [root@k8smaster ~]# kubectl expose de 阅读全文
posted @ 2022-10-17 18:30 聚散浮沉 阅读(227) 评论(0) 推荐(0)
摘要: # Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com 阅读全文
posted @ 2022-10-17 14:27 聚散浮沉 阅读(22) 评论(0) 推荐(0)
摘要: 一。构建项目镜像 [root@k8smaster ~]# cat DockerfileFROM xiaotiejiang_jdk1.8.0_341 依赖于之前构建的jdk镜像MAINTAINER xiaotiejiangADD 38-springboot-k8s-1.0.0.jar /optRUN 阅读全文
posted @ 2022-10-17 10:58 聚散浮沉 阅读(354) 评论(0) 推荐(0)