Re: [kubernetes-users] Measuring disk latency on GKE

2018-02-01 Thread 'Ahmet Alp Balkan' via Kubernetes user discussion and Q
You can have CoreOS toolbox on GKE COS nodes: https://cloud.google.
com/container-optimized-os/docs/how-to/toolbox

Just type "toolbox" when you SSH into the node.

On Thu, Feb 1, 2018 at 8:20 PM, Warren Strange 
wrote:

>
>
> Stackdriver will show me disk IOPS and throughput for PD disks.
>
> How do I measure disk latency?   I have a suspicion that a service is slow
> because of latency (my PD disks are operating well below their potential
> IOPS).
>
> iostat does not seem to be installed on the COS nodes.
>
> Suggestions welcome
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


Re: [kubernetes-users] usage of config-maps in gke deployments

2018-02-01 Thread 'Ahmet Alp Balkan' via Kubernetes user discussion and Q
I can't reproduce your problem./ I see the KUBE_CONFIG_1 and _2 just fine
when I deploy this pod.

I just created configmap:

kubectl create configmap test-configmap --from-literal=data-1=foo
--from-literal=data-2=bar

If you're seeing a crashloopbackoff, it probably doesn't have anything to
do with "command".

Do "kubectl describe -f FILE.yaml" to see why it's crashing. It probably
can't find the configmap or one of its keys.

On Thu, Feb 1, 2018 at 10:46 PM,  wrote:

> I have created config-map and I am using the following yaml file to create
> a pod which uses the data as env variables but I am getting
> crashloopbackoff. When I remove the " command: [ "/bin/sh", "-c", "env" ]".
> It is running but i did not see any env variables in the pod. "echo
> $KUBE_CONFIG_1". It shows up blank. Can you please help me resolving this.
> (MY reqyuirement is to use env variables in configmap and attach it to the
> pod).
>
> apiVersion: v1
> kind: Pod
> metadata:
>   name: config-env-test-pod
> spec:
>   containers:
> - name: test-container
>   image: gcr.io/google_containers/busybox
>   command: [ "/bin/sh", "-c", "env" ]
>   env:
> - name: KUBE_CONFIG_1
>   valueFrom:
> configMapKeyRef:
>   name: test-configmap
>   key: data-1
> - name: KUBE_CONFIG_2
>   valueFrom:
> configMapKeyRef:
>   name: test-configmap
>   key: data-2
>
> --
> You received this message because you are subscribed to the Google Groups
> "Kubernetes user discussion and Q" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to kubernetes-users+unsubscr...@googlegroups.com.
> To post to this group, send email to kubernetes-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/kubernetes-users.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] usage of config-maps in gke deployments

2018-02-01 Thread ramueswari123
I have created config-map and I am using the following yaml file to create a 
pod which uses the data as env variables but I am getting crashloopbackoff. 
When I remove the " command: [ "/bin/sh", "-c", "env" ]". It is running but i 
did not see any env variables in the pod. "echo $KUBE_CONFIG_1". It shows up 
blank. Can you please help me resolving this. (MY reqyuirement is to use env 
variables in configmap and attach it to the pod).

apiVersion: v1
kind: Pod
metadata:
  name: config-env-test-pod
spec:
  containers:
- name: test-container
  image: gcr.io/google_containers/busybox
  command: [ "/bin/sh", "-c", "env" ]
  env:
- name: KUBE_CONFIG_1
  valueFrom:
configMapKeyRef:
  name: test-configmap
  key: data-1
- name: KUBE_CONFIG_2
  valueFrom:
configMapKeyRef:
  name: test-configmap
  key: data-2

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] Persistent volume with Infiniband

2018-02-01 Thread thắng vũ







Hi everyone, 


I want to build a Kubernetes cluster on bare-metal servers. Our cluster 
will be dedicated to MachineLearning/DeepLearning. 

We have 1 master and 3 nodes (workers). Each node has 8 GPUs and about 1TB 
local storage. Our cluster will be used by multiple users.

Users will login master server, create pods for their model (with requested 
GPU/CPU). 


I will use Persistent Volume to provision local storage, then the users can 
claim the Persistent Volume and use it in the pod to store their 
MachineLearning datasets and outputs. 

Because the dataset can be stored in one worker node but be processed in 
other workers, we want to use Infiniband over RDMA to boost the 
storage-to-cpu loading speed. 

We also want to use Infiniband to leverage Nvidia GPU-redirect between 
nodes. 


Our question is:

1. Persistent Volume has many options to provision the storage as in this 
link , so 
which solution is suitable for our case? (we thought about NFS but it might 
be slow)

2. Our cluster will be dedicated to multiple clients, is there any problem 
when we use InfiniBand for multiple client clusters. 


Thank you. 




-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] DevOps Training by Real Time Experts - Free Online Demo

2018-02-01 Thread Azhar uddin
DevOps Training and DevOps Certification Training - Experience the 
real-time implementation of DevOps projects by exploring different features 
of Making a DevOps Transition, DNS Installation, Building an RPM package, 
Automatic system updates, Operating system tuning concepts and its 
concerns, etc. This course will offer you a career in DevOps, the 
fast-growing field that connects the space between operations and software 
developers.

DevOps Training - As the name suggests DevOps is a combination of software 
development and operations and helps to emphasize communication, 
collaboration, and cohesion between the traditionally separate developer 
and IT operations teams.

Rather than seeing these as two distinct groups who are responsible for 
their specific tasks but don’t work together, the DevOps methodology 
recognizes the interdependence of the two groups.

By integrating these functions as one team or department, DevOps helps an 
organization deploy software more frequently while maintaining service 
stability and gaining the speed necessary for more innovation. And, in the 
end, everyone can deliver the best results and better experience possible 
to the customer.

Schedule and attend free demo here! https://mindmajix.com/devops-training

*Contact Info:*

USA - +1 201 378 0518
IND - +91 9246 333 245
Email: i...@mindmajix.com

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] Measuring disk latency on GKE

2018-02-01 Thread Warren Strange


Stackdriver will show me disk IOPS and throughput for PD disks.

How do I measure disk latency?   I have a suspicion that a service is slow 
because of latency (my PD disks are operating well below their potential 
IOPS).

iostat does not seem to be installed on the COS nodes. 

Suggestions welcome


-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] [ANNOUNCEMENT] etcd v3.3.0

2018-02-01 Thread Gyuho Lee
Hi Kubernetes users,

We've just released etcd v3.3.0 
 with blog post 
.

Please try out and let us know  if 
there's any feedback.

etcd team

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] Preemptible machines node pool stuck in creation

2018-02-01 Thread Łukasz Byjoś
Hi:) I have some issue with preemptible machines node. For about 3 weeks I 
can't spin new preemptible instances for zone europe-west2-a.
" The zone 'projects/XX/zones/europe-west2-a' does not have enough 
resources available to fulfill the request. Try a different zone, or try 
again later.:

I thought maybe deleting node and creating it again will help but now I'm 
stuck. 
GKE is trying to create node with machines and dashboard is stuck at edit 
mode. So now I can't change anything or stop operation. 

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.


[kubernetes-users] Re: Unable to setup service DNS in Kubernetes cluster

2018-02-01 Thread Jerry Hwang
Hi,

I faced the same issue.
E0201 19:13:05.849408   1 reflector.go:201] 
k8s.io/dns/pkg/dns/dns.go:147: Failed to list *v1.Endpoints: Unauthorized
E0201 19:13:05.850058   1 reflector.go:201] 
k8s.io/dns/pkg/dns/dns.go:150: Failed to list *v1.Service: Unauthorized

Were you able to find a solution?

Thanks,
Jerry

On Wednesday, December 20, 2017 at 10:46:28 AM UTC-8, akaas...@gmail.com 
wrote:
>
> I am setting up DNS for Kubernetes services for the first time and I came 
> across SkyDNS. So following documentation, my skydns-svc.yaml file is :
>
> apiVersion: v1
> kind: Service
> spec:
>   clusterIP: 10.100.0.100
>   ports:
>   - name: dns
> port: 53
> protocol: UDP
> targetPort: 53
>   - name: dns-tcp
> port: 53
> protocol: TCP
> targetPort: 53
>   selector:
> k8s-app: kube-dns
>   sessionAffinity: None
>   type: ClusterIP
>
>
> And my skydns-rc.yaml file is :
>
> apiVersion: v1
> kind: ReplicationController
> spec:
>   replicas: 1
>   selector:
> k8s-app: kube-dns
> version: v18
>   template:
> metadata:
>   creationTimestamp: null
>   labels:
> k8s-app: kube-dns
> kubernetes.io/cluster-service: "true"
> version: v18
> spec:
>   containers:
>   - args:
> - --domain=kube.local
> - --dns-port=10053
> image: gcr.io/google_containers/kubedns-amd64:1.6
> imagePullPolicy: IfNotPresent
> name: kubedns
> ports:
> - containerPort: 10053
>   name: dns-local
>   protocol: UDP
> - containerPort: 10053
>   name: dns-tcp-local
>   protocol: TCP
> resources:
>   limits:
> cpu: 100m
> memory: 200Mi
>   requests:
> cpu: 100m
> memory: 100Mi
> terminationMessagePath: /dev/termination-log
>   - args:
> - --cache-size=1000
> - --no-resolv
> - --server=127.0.0.1#10053
> image: gcr.io/google_containers/kube-dnsmasq-amd64:1.3
> imagePullPolicy: IfNotPresent
> name: dnsmasq
> ports:
> - containerPort: 53
>   name: dns
>   protocol: UDP
> - containerPort: 53
>   name: dns-tcp
>   protocol: TCP
> resources: {}
> terminationMessagePath: /dev/termination-log
>   - args:
> - -cmd=nslookup kubernetes.default.svc.kube.local 127.0.0.1 
> >/dev/null &&
>   nslookup kubernetes.default.svc.kube.local 127.0.0.1:10053 
> >/dev/null
> - -port=8080
> - -quiet
> image: gcr.io/google_containers/exechealthz-amd64:1.0
> imagePullPolicy: IfNotPresent
> name: healthz
> ports:
> - containerPort: 8080
>   protocol: TCP
> resources:
>   limits:
> cpu: 10m
> memory: 20Mi
>   requests:
> cpu: 10m
> memory: 20Mi
>
>
> Also on my minions, I updated the 
> /etc/systemd/system/multi-user.target.wants/kubelet.service file and added 
> the following under the ExecStart section :
>
> ExecStart=/usr/bin/kubelet \
> $KUBE_LOGTOSTDERR \
> $KUBE_LOG_LEVEL \
> $KUBELET_API_SERVER \
> $KUBELET_ADDRESS \
> $KUBELET_PORT \
> $KUBELET_HOSTNAME \
> $KUBE_ALLOW_PRIV \
> $KUBELET_POD_INFRA_CONTAINER \
> $KUBELET_ARGS \
> --cluster-dns=10.100.0.100 \
> --cluster-domain=kubernetes \
> Having done all of this and having successfully brought up the rc & svc :
>
> [root@kubernetes-master DNS]# kubectl get po | grep dns
> kube-dns-v18-hl8z63/3 
>   Running 0  6s
> [root@kubernetes-master DNS]# kubectl get svc | grep dns
> kube-dns10.100.0.100
>  53/UDP,53/TCP20m
> This is all that I got from a config standpoint. Now in order to test my 
> setup, I downloaded busybox and tested a nslookup
>
> [root@kubernetes-master DNS]# kubectl get svc | grep kubernetes
> kubernetes  10.100.0.1   443/TCP 
>
> [root@kubernetes-master DNS]# kubectl exec busybox -- nslookup kubernetes
> nslookup: can't resolve 'kubernetes'
> Server:10.100.0.100
> Address 1: 10.100.0.100
>
> Going through the logs, I see something that might explain why this is not 
> working :
>
> kubectl logs $(kubectl get pods -l k8s-app=kube-dns -o name) -c kubedns
> .
> .
> .
> E1220 17:44:48.403976   1 reflector.go:216] pkg/dns/dns.go:154: Failed 
> to list *api.Endpoints: Get 
> https://10.100.0.1:443/api/v1/endpoints?resourceVersion=0: x509: failed 
> to load system roots and no roots provided
> E1220 17:44:48.487169   1 reflector.go:216] pkg/dns/dns.go:155: Failed 
> to list *api.Service: Get 
> https://10.100.0.1:443/api/v1/services?resourceVersion=0: x509: failed to 
> load 

[kubernetes-users] Cannot read tomcat config file

2018-02-01 Thread toanstt
Hi All,

I am trying to deploy an tomcat docker image using AKS in which I use a 
PersitenceVolumeClaim to store the conf folder of Tomcat so that I can ease to 
modify the tomcat server.

PersitenceVolumeClaim is use File Share of Azure Storage Account as a Storage 
Class

The problem I am facing is, there is no copied files from conf inside docker 
container to the Azure Storage and Tomcat cannot be started
If I remove that conf mounting and just use Azure Storage to store log files 
(also PersitenceVolumeClaim on Azure Storage ), it work fine..

So please me how can I fix it?

Thanks,

TT

-- 
You received this message because you are subscribed to the Google Groups 
"Kubernetes user discussion and Q" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to kubernetes-users+unsubscr...@googlegroups.com.
To post to this group, send email to kubernetes-users@googlegroups.com.
Visit this group at https://groups.google.com/group/kubernetes-users.
For more options, visit https://groups.google.com/d/optout.