etcd-ca | A simple certificate manager written in Go | TLS library
kandi X-RAY | etcd-ca Summary
kandi X-RAY | etcd-ca Summary
A simple certificate manager written in Go. Easy to use with limited capability.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of etcd-ca
etcd-ca Key Features
etcd-ca Examples and Code Snippets
Community Discussions
Trending Discussions on etcd-ca
QUESTION
My certificates were expired:
...ANSWER
Answered 2021-Mar-30 at 09:45The ~/.kube/config
wasn't updated with the changes.
I ran:
QUESTION
I am trying to understand and compare the output I see from htop (sorted by mem%) and "ps aux --sort=-%mem | grep query.jar" and determine why 24.2G out of 32.3G is in use on an idle server.
The ps command shows a single parent (not child process I assume):
...ANSWER
Answered 2021-Jan-02 at 20:49The primary difference between htop
and ps aux
is that htop
shows each individual thread belonging to a process rather than the process only - this is similar to ps auxm
. Using the htop
interactive command H
, you can hide threads to get to a list that more closely corresponds to ps aux
.
In terms of memory usage, those additional entries representing individual threads do not affect the actual memory usage total because threads share the address space of the associated process.
RSS
(resident set size) in general is problematic because it does not adequately represent shared pages (due to shared memory or copy-on-write) for your purpose - the sum can be higher than expected in those cases. You can use smem -t
to get a better picture with the PSS
(proportional set size) column. Based on the facts you provided, that is not your issue, though.
In your case, it might make sense to dig deeper via smem -tw
to get a memory usage breakdown that includes (non-cache) kernel resources. /proc/meminfo
provides further details.
QUESTION
I am using KubeSpray to provision a two node cluster on AWS. By default, the --kubelet-certificate-authority
parameter is not used. However, I would like to set it.
I do not know the correct setting for --kubelet-certificate-authority
. When I set it to /etc/kubernetes/pki/ca.crt
I see messages like the following in my logs:
ANSWER
Answered 2020-Sep-22 at 13:23In order to make the --kubelet-certificate-authority
flag work you first need to make sure you got Kubelet authentication and Kubelet authorization enabled. After that you can follow the Kubernetes documentation and setup the TLS connection between the apiserver and kubelet. And finally, you can edit the API server pod specification file /etc/kubernetes/manifests/kube-apiserver.yaml
on the master node and set the --kubelet-certificate-authority
parameter to the path to the cert file for the certificate authority.
So, to sum up the steps to do are:
start the kubelet with the
--anonymous-auth=false
flagstart the kubelet with the
--client-ca-file
flag, providing a CA bundle to verify client certificates withstart the apiserver with
--kubelet-client-certificate
and--kubelet-client-key
flagsensure the
authentication.k8s.io/v1beta1
API group is enabled in the API serverstart the kubelet with the
--authentication-token-webhook
and--kubeconfig flags
the kubelet calls the
TokenReview
API on the configured API server to determine user information from bearer tokens
ensure the
authorization.k8s.io/v1beta1
API group is enabled in the API serverstart the kubelet with the
--authorization-mode=Webhook
and the--kubeconfig
flagsthe kubelet calls the
SubjectAccessReview
API on the configured API server to determine whether each request is authorized
- Use the
--kubelet-certificate-authority
flag to provide the apiserver with a root certificate bundle to use to verify the kubelet's serving certificate.
More details can be found in the linked documentation.
QUESTION
when restarting kubernetes master node. I'm getting below error
...ANSWER
Answered 2020-Sep-14 at 13:22Actually I had extra space added on two places
--requestheader-username-headers=X-Remote-User \ <-- extra space here --proxy-client-cert-file=/var/lib/kubernetes/kube-proxy.crt \ <-- extra space here
Thanks to the reply here https://github.com/kubernetes/kubernetes/issues/94758 found the issue
QUESTION
I've accidentally drained/uncordoned all nodes in Kubernetes (even master) and now I'm trying to bring it back by connecting to the ETCD and manually change some keys in there. I successfuly bashed into etcd container:
...ANSWER
Answered 2020-Jun-24 at 16:48This context deadline exceeded
generally happens because of
Using wrong certificates. You could be using peer certificates instead of client certificates. You need to check the Kubernetes API Server parameters which will tell you where are the client certificates located because Kubernetes API Server is a client to ETCD. Then you can use those same certificates in the
etcdctl
command from the node.The etcd cluster is not operational anymore because peer members are down.
QUESTION
I am trying to deploy a K8s cluster from scratch using Kelsey Grammer's Learn Kubernetes the hardway guide. In my case I am using vagrant and VirtualBox.
Each of My Master and Workers have a dhcp network in eth0(10.0.2.x range) for pulling bits from the internet and a eth1 static range (10.10.10.x/24) for internal k8s communication.
...ANSWER
Answered 2020-May-13 at 16:26I edited /etc/systemd/system/kubelet.service.d/10-kubeadm.conf
- adding the --node-ip flag
to KUBELET_CONFIG_ARGS
and restarted kubelet with:
QUESTION
I am installing kubernetes the hardway by mumshad(https://github.com/mmumshad/kubernetes-the-hard-way/blob/master/docs/08-bootstrapping-kubernetes-controllers.md). currently stuck at Bootstrapping the Kubernetes Control Plane phase, have followed the instructions in the document carefully but for some reason the kube-apiserver is not running and it is in auto restart state. Could any one of you help me on this. Same issue on both master nodes, however the kube-schedular and kube-control manager are running properly. Errors are provided below.
...ANSWER
Answered 2020-Feb-24 at 12:21Share systemctl status kube-apiserver -l command output, also check /var/log/messages file and post error here.
QUESTION
I setup my cluster by kubeadm. At the last step i exec kubeadm init --config kubeadm.conf --v=5
. I get the error about the clusterIp value. Here is the part of the output:
ANSWER
Answered 2020-Feb-21 at 02:18Because this node I joined the cluster as a node beforeBecause this node I joined the cluster as a node before.Later I reset this with "kubeadm reset " command.After the reset, I joined it as a master role to the cluster. So I get the error in my question above. The error is because the range of the clusterip before I reset is already recorded in the etcd cluster. And "kubeadm reset" command does not clean up the data in the etcd.So the new definition of clusterip conflicts with the original.So the solution is to clean up the data in the etcd and reset it again. (Since the cluster I built is a test cluster, I cleaned the etcd directly. Please be careful in the production environment)
QUESTION
I'm trying to set up the Kubernetes master, by issuing:
kubeadm init --pod-network-cidr=192.168.0.0/16
- followed by: Installing a pod network add-on (Calico)
- followed by: Master Isolation
issue: coredns
pods have CrashLoopBackOff
or Error
state:
ANSWER
Answered 2018-Nov-25 at 01:57This error
QUESTION
I am maintaining rancher single node setup. Recently we had a issue with the server and it is stopped. I tried to restore from backup. But still it fails. I am providing the log here. I am not able to debug the exact issue.
Rancher version 2.0.8 docker version: 17.03.2-ce
Restored from this documentation https://rancher.com/docs/rancher/v2.x/en/backups/restorations/single-node-restoration/
...ANSWER
Answered 2020-Jan-06 at 04:38This problem is due to kubernates tls certificates expiry. Rancher version v2.0.8 does not have auto refresh mechanism for ssl/tls certificates. I have upgraded to v2.2.8, and the issue is fixed now. In v2.2.8 they have provided a solution for refreshing of kubernates certificates from the console.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install etcd-ca
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page