Comments (7)
values.yaml
global:
enabled: true
domain: consul
image: "consul:1.2.3"
imageK8S: "hashicorp/consul-k8s:0.1.0"
datacenter: dc1
server:
enabled: "-"
image: null
replicas: 3
bootstrapExpect: 3 # Should <= replicas count
storage: 20Gi
storageClass: null
connect: true
resources: {}
updatePartition: 0
disruptionBudget:
enabled: true
maxUnavailable: null
extraConfig: |
{}
extraVolumes: []
client:
enabled: "-"
image: null
join: null
grpc: false
resources: {}
extraConfig: |
{}
extraVolumes: []
dns:
enabled: "-"
ui:
enabled: "-"
service:
enabled: true
type: null
syncCatalog:
enabled: true
image: null
toConsul: true
toK8S: false
k8sPrefix: null
connectInject:
enabled: false
image: null
default: false
imageConsul: null
imageEnvoy: null
namespaceSelector: null
certs:
secretName: null
caBundle: ""
certName: tls.crt
keyName: tls.key
from consul-helm.
consul-y-sync-catalog try to connect hostIP:8500, but I found that consul client run command
/bin/sh -ec CONSUL_FULLNAME="consul-y" exec /bin/consul agent \ -advertise="${POD_IP}" \ -bind=0.0.0.0 \ -client=0.0.0.0 \ -config-dir=/consul/config \ -datacenter=dc1 \ -data-dir=/consul/data \ -retry-join=${CONSUL_FULLNAME}-server-0.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \ -retry-join=${CONSUL_FULLNAME}-server-1.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \ -retry-join=${CONSUL_FULLNAME}-server-2.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \ -domain=consul
-advertise="${POD_IP}
Anything I wrong?
Thanks!!!
from consul-helm.
Also I run helm :
helm install --name consul-y ./ --namespace=consul
(backend5) tt-939:consul-helm tt$ helm version
Client: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.11.0", GitCommit:"2e55dbe1fdb5fdb96b75ff144a339489417b146b", GitTreeState:"clean"}
(backend5) tt-939:consul-helm tt$ kubectl version
Client Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-08T16:31:16Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"11", GitVersion:"v1.11.2", GitCommit:"bb9ffb1654d4a729bb4cec18ff088eacc153c239", GitTreeState:"clean", BuildDate:"2018-08-07T23:08:19Z", GoVersion:"go1.10.3", Compiler:"gc", Platform:"linux/amd64"}
from consul-helm.
(backend5) tt-939:consul-helm tt$ ku describe deployment consul-y-sync-catalog --namespace=consul
Name: consul-y-sync-catalog
Namespace: consul
CreationTimestamp: Thu, 06 Dec 2018 02:27:16 +0900
Labels: app=consul
chart=consul-0.1.0
heritage=Tiller
release=consul-y
Annotations: deployment.kubernetes.io/revision=1
Selector: app=consul,chart=consul-0.1.0,component=sync-catalog,release=consul-y
Replicas: 1 desired | 1 updated | 1 total | 0 available | 1 unavailable
StrategyType: RollingUpdate
MinReadySeconds: 0
RollingUpdateStrategy: 25% max unavailable, 25% max surge
Pod Template:
Labels: app=consul
chart=consul-0.1.0
component=sync-catalog
release=consul-y
Annotations: consul.hashicorp.com/connect-inject=false
Containers:
consul-sync-catalog:
Image: hashicorp/consul-k8s:0.1.0
Port: <none>
Host Port: <none>
Command:
/bin/sh
-ec
consul-k8s sync-catalog \
-http-addr=${HOST_IP}:8500 \
-to-k8s=false \
-consul-domain=consul \
-k8s-write-namespace=${NAMESPACE}
Environment:
HOST_IP: (v1:status.hostIP)
NAMESPACE: (v1:metadata.namespace)
Mounts: <none>
Volumes: <none>
Conditions:
Type Status Reason
---- ------ ------
Available False MinimumReplicasUnavailable
Progressing False ProgressDeadlineExceeded
OldReplicaSets: <none>
NewReplicaSet: consul-y-sync-catalog-5d557fbfdf (1/1 replicas created)
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal ScalingReplicaSet 24m deployment-controller Scaled up replica set consul-y-sync-catalog-5d557fbfdf to 1
from consul-helm.
(backend5) tt-939:consul-helm tt$ ku describe statefulset consul-y-server --namespace=consul
Name: consul-y-server
Namespace: consul
CreationTimestamp: Thu, 06 Dec 2018 02:27:16 +0900
Selector: app=consul,chart=consul-0.1.0,component=server,hasDNS=true,release=consul-y
Labels: app=consul
chart=consul-0.1.0
heritage=Tiller
release=consul-y
Annotations: <none>
Replicas: 3 desired | 3 total
Update Strategy: RollingUpdate
Pods Status: 3 Running / 0 Waiting / 0 Succeeded / 0 Failed
Pod Template:
Labels: app=consul
chart=consul-0.1.0
component=server
hasDNS=true
release=consul-y
Annotations: consul.hashicorp.com/connect-inject=false
Containers:
consul:
Image: consul:1.2.3
Ports: 8500/TCP, 8301/TCP, 8302/TCP, 8300/TCP, 8600/TCP, 8600/UDP
Host Ports: 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/TCP, 0/UDP
Command:
/bin/sh
-ec
CONSUL_FULLNAME="consul-y"
exec /bin/consul agent \
-advertise="${POD_IP}" \
-bind=0.0.0.0 \
-bootstrap-expect=3 \
-client=0.0.0.0 \
-config-dir=/consul/config \
-datacenter=dc1 \
-data-dir=/consul/data \
-domain=consul \
-hcl="connect { enabled = true }" \
-ui \
-retry-join=${CONSUL_FULLNAME}-server-0.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \
-retry-join=${CONSUL_FULLNAME}-server-1.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \
-retry-join=${CONSUL_FULLNAME}-server-2.${CONSUL_FULLNAME}-server.${NAMESPACE}.svc \
-server
Readiness: exec [/bin/sh -ec curl http://127.0.0.1:8500/v1/status/leader 2>/dev/null | \
grep -E '".+"'
] delay=5s timeout=5s period=3s #success=1 #failure=2
Environment:
POD_IP: (v1:status.podIP)
NAMESPACE: (v1:metadata.namespace)
Mounts:
/consul/config from config (rw)
/consul/data from data (rw)
Volumes:
config:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: consul-y-server-config
Optional: false
Volume Claims:
Name: data
StorageClass:
Labels: <none>
Annotations: <none>
Capacity: 20Gi
Access Modes: [ReadWriteOnce]
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal SuccessfulCreate 26m statefulset-controller create Claim data-consul-y-server-0 Pod consul-y-server-0 in StatefulSet consul-y-server success
Normal SuccessfulCreate 26m statefulset-controller create Pod consul-y-server-0 in StatefulSet consul-y-server successful
Normal SuccessfulCreate 26m statefulset-controller create Claim data-consul-y-server-1 Pod consul-y-server-1 in StatefulSet consul-y-server success
Normal SuccessfulCreate 26m statefulset-controller create Pod consul-y-server-1 in StatefulSet consul-y-server successful
Normal SuccessfulCreate 26m statefulset-controller create Claim data-consul-y-server-2 Pod consul-y-server-2 in StatefulSet consul-y-server success
Normal SuccessfulCreate 26m statefulset-controller create Pod consul-y-server-2 in StatefulSet consul-y-server successful
from consul-helm.
How to resolve it @dongtianyi, I have the same issue.
from consul-helm.
how did you solve did you use podIP? I have the same issue with one consul-server and no volume
from consul-helm.
Related Issues (20)
- Variable Interpolation within Helm chart HOT 7
- [ERROR] Unable to get Agent services: error="Unexpected response code: 403 (ACL not found)" HOT 9
- GKE Ingress requires pathType to be ImplementationSpecific
- flag provided but not defined: -log-json HOT 6
- Mesh-Gateway k8s: Error initializing configuration HOT 6
- Chart v0.32.+ : invalid config key "TransparentProxy" for proxy-defaults.yaml HOT 2
- Could not resolve host: static-server HOT 9
- test issue migration
- consul-consul-webhook-cert-manager flag provided but not defined: -log-json HOT 2
- 0.32.1/1.10.0 WAN Federation consul-server-acl-init job failing to execute resulting in failed helm installation HOT 8
- Kubernetes, ConsulCatalog and Traefik - Changing default Sync Rule between K8s and ConsulCatalog? HOT 2
- Consul connect injected sidecars not permitted by Pod Security Policies HOT 2
- Allow specifying a default policy / role for namespace mirroring HOT 2
- How route traffic to another consul node? HOT 5
- Consul ingress gateways not starting after chart upgrade HOT 6
- Which directory consul kv data is stored HOT 4
- consul connect: 503 after scaling in or pod restarts HOT 15
- feat: Add `-recursor` flag
- Failed helm upgrade leaves behind a job that prevents future upgrades? HOT 7
- Allow Consul client daemonset connectivity via nodePort (instead of only hostPort) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from consul-helm.