• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






会飞の鱼

 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

02 2018 档案

 
kubernetes role
摘要:https://kubernetes.io/docs/admin/authorization/rbac/ 阅读全文
posted @ 2018-02-28 19:09 会飞の鱼 阅读(140) 评论(0) 推荐(0)
kubenetes dns
摘要:E0228 07:32:28.912833 1 reflector.go:201] k8s.io/dns/pkg/dns/dns.go:147: Failed to list *v1.Endpoints: Get https://10.0.0.1:443/api/v1/endpoints?resou 阅读全文
posted @ 2018-02-28 16:14 会飞の鱼 阅读(390) 评论(0) 推荐(0)
kubernetes ServiceAccount
摘要:api server 启动参数增加 –admission_control=…,ServiceAccount,… 阅读全文
posted @ 2018-02-28 15:37 会飞の鱼 阅读(147) 评论(0) 推荐(0)
k8s secret
摘要:https://kubernetes.io/docs/concepts/configuration/secret/ Secret是一个包含少量敏感数据的对象,例如密码,令牌或密钥。 否则,这些信息可能被放入Pod规格或图像中; 将其放置在Secret对象中可以更好地控制它的使用方式,并降低意外暴露的 阅读全文
posted @ 2018-02-27 19:11 会飞の鱼 阅读(487) 评论(0) 推荐(0)
kubernetes configmap
摘要:ConfigMaps允许您将配置工件与image内容分离,以保持容器化应用程序的便携性。 本页面提供了一系列使用示例,演示如何使用ConfigMaps中存储的数据创建ConfigMaps和配置Pod。 Create ConfigMaps from directories [root@mhc conf 阅读全文
posted @ 2018-02-27 17:39 会飞の鱼 阅读(505) 评论(0) 推荐(0)
k8s podpreset 参数注入
摘要:启动apiserver时,增加 参数 --runtime-config=settings.k8s.io/v1alpha1=true 阅读全文
posted @ 2018-02-27 15:34 会飞の鱼 阅读(395) 评论(0) 推荐(0)
python pipenv 包管理
摘要:原文链接:https://robots.thoughtbot.com/how-to-manage-your-python-projects-with-pipenv 翻译者:Jiong 在thoughtbot,我们用Ruby和Rails工作,但通常我们总是尝试使用最合适的语言或者框架来解决问题。我最近 阅读全文
posted @ 2018-02-26 21:34 会飞の鱼 阅读(181) 评论(0) 推荐(0)
使用火狐浏览器访问双向认证的k8s api
摘要:首先 不能在火狐里对要访问的网址添加例外 打开 选项->高级->查看证书->证书机构->导入。先择服务端ca.crt后根据提示导入证书 生成p12文件 openssl pkcs12 -export -clcerts -in cs_client.crt -inkey cs_client.key -ou 阅读全文
posted @ 2018-02-26 14:19 会飞の鱼 阅读(1189) 评论(0) 推荐(0)
k8s api
摘要:https://kubernetes.io/docs/reference/ 阅读全文
posted @ 2018-02-26 14:05 会飞の鱼 阅读(153) 评论(0) 推荐(0)
常用的排序算法的时间复杂度和空间复杂度
摘要:排序法 插入排序 阅读全文
posted @ 2018-02-26 09:29 会飞の鱼 阅读(159) 评论(0) 推荐(0)
flask 启动
摘要:export SECRET_KEY=qq77aa88 export MAIL_SERVER=smtp.qq.com export MAIL_USERNAME=591867837@qq.com export MAIL_PASSWORD=xxibvizgihlmbcgb export FLASKY_AD 阅读全文
posted @ 2018-02-12 10:26 会飞の鱼 阅读(142) 评论(0) 推荐(0)
flask config
摘要:class Config: SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string' MAIL_SERVER = os.environ.get('MAIL_SERVER', 'smtp.qq.com') MAIL_PORT 阅读全文
posted @ 2018-02-11 16:15 会飞の鱼 阅读(169) 评论(0) 推荐(0)
flask 数据迁移
摘要:python flasky.py shell db.create_all() from app.models import User mhc = User("mhc") >>> db.session.add(mhc)>>> db.session.commit() if __name__ == '__ 阅读全文
posted @ 2018-02-10 21:47 会飞の鱼 阅读(515) 评论(0) 推荐(0)
docker daemon 配置代理
摘要:vi /etc/systemd/system/docker.service.d/http-proxy.conf [Service]Environment="HTTP_PROXY=socks5://192.168.0.211:7070" "HTTPS_PROXY=socks5://192.168.0. 阅读全文
posted @ 2018-02-09 16:35 会飞の鱼 阅读(244) 评论(0) 推荐(0)
dbcm with kubenetes
摘要:1. create consul # kcompose convert -f /root/gitSwarm/dbcm-base-managers/compose/consul.yml genetate two files: consul-deployment.yaml consul-service. 阅读全文
posted @ 2018-02-07 18:06 会飞の鱼 阅读(366) 评论(0) 推荐(0)
curl 访问 k8s
摘要:curl https://mhc:6443/api --cacert ssl/ca.crt --key client_ssl/cs_client.key --cert client_ssl/cs_client.crt { "kind": "APIVersions", "versions": [ "v 阅读全文
posted @ 2018-02-07 13:02 会飞の鱼 阅读(320) 评论(0) 推荐(0)
kubernetes 集群安全配置
摘要:版本:v1.10.0-alpha.3 openssl genrsa -out ca.key 2048 openssl req -x509 -new -nodes -key ca.key -subj "/CN=mhc" -days 5000 -out ca.crt openssl genrsa -ou 阅读全文
posted @ 2018-02-04 16:54 会飞の鱼 阅读(314) 评论(0) 推荐(0)
k8s dashboard
摘要:[root@mhc dashboard]# cat dashboard-controller.yaml # This file should be kept in sync with cluster/gce/coreos/kube-manifests/addons/dashboard/dashboa 阅读全文
posted @ 2018-02-02 20:14 会飞の鱼 阅读(189) 评论(0) 推荐(0)
k8s v1.5.8 单节点搭建
摘要:setsid etcd -name etcd -data-dir /var/lib/etcd -listen-client-urls http://0.0.0.0:2379,http://0.0.0.0:4001 -advertise-client-urls http://0.0.0.0:2379, 阅读全文
posted @ 2018-02-02 17:29 会飞の鱼 阅读(187) 评论(0) 推荐(0)