随笔分类 - k8s
摘要:1.部署容器化应用 [root@k8smaster ~]# kubectl create deployment nginx --image=nginxdeployment.apps/nginx created 2.暴露该服务 [root@k8smaster ~]# kubectl expose de
阅读全文
摘要:# Copyright 2017 The Kubernetes Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in com
阅读全文
摘要:一。构建项目镜像 [root@k8smaster ~]# cat DockerfileFROM xiaotiejiang_jdk1.8.0_341 依赖于之前构建的jdk镜像MAINTAINER xiaotiejiangADD 38-springboot-k8s-1.0.0.jar /optRUN
阅读全文
摘要:[root@k8smaster ~]# kubectl get podsNAME READY STATUS RESTARTS AGEnginx-6799fc88d8-62njk 1/1 Running 2 12htomcat-7d987c7694-59x5l 1/1 Running 1 147m[r
阅读全文
摘要:[root@k8snode ~]# kubeadm join 192.168.1.200:6443 --token ldxc3h.xo65e5vce0n9nzdz \> --discovery-token-ca-cert-hash sha256:f7afde1770e767386be35332aa4
阅读全文
摘要:一。准备工作,master和node都要做 [root@localhost ~]# systemctl stop firewalld[root@localhost ~]# systemctl disable firewalldRemoved symlink /etc/systemd/system/d
阅读全文