如果集群内所有components的证书都还没有过期时,更新证书很容就一个命令
kubeadm alpha certs renew all然后他会自动在/etc/kubernetes/pki目录下把所有证书都更新一遍。但是如果过期的话,那我就不知道了,不过可以通过手动签发证书来生成
| --- | |
| apiVersion: extensions/v1beta1 | |
| kind: Ingress | |
| metadata: | |
| name: lbc-guestbook | |
| spec: | |
| rules: | |
| - host: lbc-guestbook.default.10.202.15.4.xip.io # change the hostname to yours | |
| http: | |
| paths: |
| kubectl create secret generic mysql --from-literal=password=YOUR_PASSWORD |
| # coding=utf-8 | |
| import sys | |
| import math | |
| def left(i): | |
| return 2 * (i + 1) - 1 | |
| def right(i): |
| class New(object): | |
| def __init__(self): | |
| super(New, self).__init__() | |
| self._type = None | |
| def __lt__(self, t): | |
| self._type = t | |
| return New2(t) | |
| __lshift__ = __lt__ |
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| " call vundle#begin('~/some/path/here') | |
| " | |
| " let Vundle manage Vundle, required |