kubectl

Multi-broker Kafka on Kubernetes how to set KAFKA_ADVERTISED_HOST_NAME

若如初见. 提交于 2020-12-08 07:59:11
问题 My current Kafka deployment file with 3 Kafka brokers looks like this: apiVersion: apps/v1beta1 kind: StatefulSet metadata: name: kafka spec: selector: matchLabels: app: kafka serviceName: kafka-headless replicas: 3 updateStrategy: type: RollingUpdate podManagementPolicy: Parallel template: metadata: labels: app: kafka spec: containers: - name: kafka-instance image: wurstmeister/kafka ports: - containerPort: 9092 env: - name: KAFKA_ADVERTISED_PORT value: "9092" - name: KAFKA_ADVERTISED_HOST

deployment fails to recreate a successful replicaset

孤者浪人 提交于 2020-12-06 16:50:22
问题 We are using Kubernetes 1.8 to deploy our software in a cloud provider. Frequently, when deploying a specific pod-template, the deployment fails to create a successful replicaset and no instance is created. I am not able to find a better description than kubectl describe deploy. Type Status Reason ---- ------ ------ Available False MinimumReplicasUnavailable Progressing False ProgressDeadlineExceeded OldReplicaSets: <none> NewReplicaSet: <none> Events: Type Reason Age From Message ---- ------

deployment fails to recreate a successful replicaset

本秂侑毒 提交于 2020-12-06 16:46:50
问题 We are using Kubernetes 1.8 to deploy our software in a cloud provider. Frequently, when deploying a specific pod-template, the deployment fails to create a successful replicaset and no instance is created. I am not able to find a better description than kubectl describe deploy. Type Status Reason ---- ------ ------ Available False MinimumReplicasUnavailable Progressing False ProgressDeadlineExceeded OldReplicaSets: <none> NewReplicaSet: <none> Events: Type Reason Age From Message ---- ------

Kubernetes RBAC - forbidden attempt to grant extra privileges

ぐ巨炮叔叔 提交于 2020-12-05 19:11:18
问题 I'm using Kubernetes v1.8.14 on custom built CoreOS cluster: $ kubectl version --short Client Version: v1.10.5 Server Version: v1.8.14+coreos.0 When trying to create the following ClusterRole : $ cat ClusterRole.yml --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: kubernetes.io/bootstrapping: rbac-defaults name: system:coredns rules: - apiGroups: - "" resources: - endpoints - services - pods - namespaces verbs: - list - watch I get the following error: $

Kubernetes RBAC - forbidden attempt to grant extra privileges

让人想犯罪 __ 提交于 2020-12-05 19:09:45
问题 I'm using Kubernetes v1.8.14 on custom built CoreOS cluster: $ kubectl version --short Client Version: v1.10.5 Server Version: v1.8.14+coreos.0 When trying to create the following ClusterRole : $ cat ClusterRole.yml --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: kubernetes.io/bootstrapping: rbac-defaults name: system:coredns rules: - apiGroups: - "" resources: - endpoints - services - pods - namespaces verbs: - list - watch I get the following error: $

Kubernetes RBAC - forbidden attempt to grant extra privileges

情到浓时终转凉″ 提交于 2020-12-05 19:05:58
问题 I'm using Kubernetes v1.8.14 on custom built CoreOS cluster: $ kubectl version --short Client Version: v1.10.5 Server Version: v1.8.14+coreos.0 When trying to create the following ClusterRole : $ cat ClusterRole.yml --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: kubernetes.io/bootstrapping: rbac-defaults name: system:coredns rules: - apiGroups: - "" resources: - endpoints - services - pods - namespaces verbs: - list - watch I get the following error: $

Kubernetes RBAC - forbidden attempt to grant extra privileges

和自甴很熟 提交于 2020-12-05 19:05:52
问题 I'm using Kubernetes v1.8.14 on custom built CoreOS cluster: $ kubectl version --short Client Version: v1.10.5 Server Version: v1.8.14+coreos.0 When trying to create the following ClusterRole : $ cat ClusterRole.yml --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: kubernetes.io/bootstrapping: rbac-defaults name: system:coredns rules: - apiGroups: - "" resources: - endpoints - services - pods - namespaces verbs: - list - watch I get the following error: $

Kubernetes RBAC - forbidden attempt to grant extra privileges

 ̄綄美尐妖づ 提交于 2020-12-05 19:05:08
问题 I'm using Kubernetes v1.8.14 on custom built CoreOS cluster: $ kubectl version --short Client Version: v1.10.5 Server Version: v1.8.14+coreos.0 When trying to create the following ClusterRole : $ cat ClusterRole.yml --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: labels: kubernetes.io/bootstrapping: rbac-defaults name: system:coredns rules: - apiGroups: - "" resources: - endpoints - services - pods - namespaces verbs: - list - watch I get the following error: $

can't start minikube in ec2 shows “X Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path”

瘦欲@ 提交于 2020-12-05 04:58:51
问题 Hi I am trying to start minikube that's why I ran minikube start --vm-driver=none But it shows in the console the below lines: minikube v1.9.2 on Amazon 2 (Xen/amd64) Using the none driver based on user configuration X Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path Note that i have installed kubectl minikube and docker . Please help me to sort out this issues. 回答1: I had the same issue. Install 'conntrack' with sudo apt install conntrack Then continue to start

can't start minikube in ec2 shows “X Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path”

不羁的心 提交于 2020-12-05 04:58:05
问题 Hi I am trying to start minikube that's why I ran minikube start --vm-driver=none But it shows in the console the below lines: minikube v1.9.2 on Amazon 2 (Xen/amd64) Using the none driver based on user configuration X Sorry, Kubernetes v1.18.0 requires conntrack to be installed in root's path Note that i have installed kubectl minikube and docker . Please help me to sort out this issues. 回答1: I had the same issue. Install 'conntrack' with sudo apt install conntrack Then continue to start