[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: aggregating container logs



I'm guessing that elasticpod.yaml is the manifest for your fluentd pod that is in /var/lib/origin/openshift.local.manifests/?  
You actually would not need to `oc create -f elasticpod.yaml` if we have the path set properly  Restart your openshift-node and then check to see that your pod has started up.

On Mon, Oct 26, 2015 at 10:08 AM, Lorenz Vanthillo <lorenz vanthillo outlook com> wrote:
Thanks, So I have manually created /var/lib/origin/openshift.local.manifests.
Do I have to place my elasticpod.yaml in the openshift.local.manifests/ or in the origin/?
I did in the openshift.local.manifests/. After that I tried to execute the file:
# oc create -f elasticpod.yaml/

But I get an error. I thougt is was maybe because the service account wasn't configured properly but it looks good.
[root ip-10-0-0-129 openshift.local.manifests]# oc get sa
NAME        SECRETS   AGE
builder     2         1h
default     2         1h
deployer    2         1h
es-deploy   3         47m


Error from server: error when creating "pod.yaml": Pod "fluentd-elasticsearch" is forbidden: unable to validate against any security context constraint: [provider restricted: .spec.containers[0].securityContext.privileged: invalid value 'true', Details: Privileged containers are not allowed provider restricted: .spec.containers[0].securityContext.VolumeMounts: invalid value 'varlog', Details: Host Volumes are not allowed to be used provider restricted: .spec.containers[0].securityContext.VolumeMounts: invalid value 'varlibdockercontainers', Details: Host Volumes are not allowed to be used]



From: ewolinet redhat com
Date: Mon, 26 Oct 2015 09:43:33 -0500
Subject: Re: aggregating container logs
To: lorenz vanthillo outlook com
CC: users lists openshift redhat com


This should just be a path on your system.  
We're specifying this path to tell the Kubelet where to look for our fluentd.yaml file - a little further down in the guide it instructs you to create the yaml file within that directory.


On Mon, Oct 26, 2015 at 9:18 AM, Lorenz Vanthillo <lorenz vanthillo outlook com> wrote:
I'm trying to aggregate container logs using ElasticSearch
I have to specify my 'openshift.local.manifests' in my node-config.yaml
The problem is I can't find it on OpenShift origin. What's the path to this?




_______________________________________________
users mailing list
users lists openshift redhat com
http://lists.openshift.redhat.com/openshiftmm/listinfo/users



--
Eric Wolinetz

Red Hat Engineering | OpenShift
ewolinet redhat com
IRC: ewolinetz
C: (847) 641-0143

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]