随笔分类 -  k8s

摘要:1.部署容器化应用 [root@k8smaster ~]# kubectl create deployment nginx --image=nginxdeployment.apps/nginx created 2.暴露该服务 [root@k8smaster ~]# kubectl expose de 阅读全文
posted @ 2022-10-17 18:30 聚散浮沉 阅读(218) 评论(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 聚散浮沉 阅读(15) 评论(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 聚散浮沉 阅读(339) 评论(0) 推荐(0) 编辑
摘要:[root@k8smaster ~]# kubectl get podsNAME READY STATUS RESTARTS AGEnginx-6799fc88d8-62njk 1/1 Running 2 12htomcat-7d987c7694-59x5l 1/1 Running 1 147m[r 阅读全文
posted @ 2022-10-16 11:39 聚散浮沉 阅读(344) 评论(0) 推荐(0) 编辑
摘要:[root@k8snode ~]# kubeadm join 192.168.1.200:6443 --token ldxc3h.xo65e5vce0n9nzdz \> --discovery-token-ca-cert-hash sha256:f7afde1770e767386be35332aa4 阅读全文
posted @ 2022-10-15 22:57 聚散浮沉 阅读(84) 评论(0) 推荐(0) 编辑
摘要:一。准备工作,master和node都要做 [root@localhost ~]# systemctl stop firewalld[root@localhost ~]# systemctl disable firewalldRemoved symlink /etc/systemd/system/d 阅读全文
posted @ 2022-10-15 18:47 聚散浮沉 阅读(1539) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示