mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	update makefiles to use cloud build and update README
This commit is contained in:
		@@ -58,6 +58,14 @@ DaemonSet will ignore them.
 | 
			
		||||
 | 
			
		||||
Learn more in the [official Kubernetes documentation][k8sElasticsearchDocs].
 | 
			
		||||
 | 
			
		||||
## Building
 | 
			
		||||
 | 
			
		||||
Both images are now being hosted in google cloud and are built via the
 | 
			
		||||
[cloud build](https://cloud.google.com/cloud-build/) product.  To build these
 | 
			
		||||
images yourself you will need to have the [gcloud sdk](https://cloud.google.com/sdk/install)
 | 
			
		||||
installed and you will need to login.  You can then run `make` in either
 | 
			
		||||
image directory to trigger a container build.
 | 
			
		||||
 | 
			
		||||
### Known problems
 | 
			
		||||
 | 
			
		||||
Since Fluentd talks to the Elasticsearch service inside the cluster, instances
 | 
			
		||||
 
 | 
			
		||||
@@ -12,20 +12,11 @@
 | 
			
		||||
# See the License for the specific language governing permissions and
 | 
			
		||||
# limitations under the License.
 | 
			
		||||
 | 
			
		||||
.PHONY:	binary build push
 | 
			
		||||
.PHONY:	build
 | 
			
		||||
 | 
			
		||||
PREFIX = staging-k8s.gcr.io
 | 
			
		||||
PREFIX = gcr.io/fluentd-elasticsearch
 | 
			
		||||
IMAGE = elasticsearch
 | 
			
		||||
TAG = v6.3.0
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
	docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
 | 
			
		||||
 | 
			
		||||
push:
 | 
			
		||||
	docker push $(PREFIX)/$(IMAGE):$(TAG)
 | 
			
		||||
 | 
			
		||||
binary:
 | 
			
		||||
	CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-w" elasticsearch_logging_discovery.go
 | 
			
		||||
 | 
			
		||||
clean:
 | 
			
		||||
	rm elasticsearch_logging_discovery
 | 
			
		||||
	gcloud builds submit --tag ${PREFIX}/${IMAGE}:${TAG}
 | 
			
		||||
@@ -12,14 +12,11 @@
 | 
			
		||||
# See the License for the specific language governing permissions and
 | 
			
		||||
# limitations under the License.
 | 
			
		||||
 | 
			
		||||
.PHONY:	build push
 | 
			
		||||
.PHONY:	build
 | 
			
		||||
 | 
			
		||||
PREFIX = staging-k8s.gcr.io
 | 
			
		||||
IMAGE = fluentd-elasticsearch
 | 
			
		||||
PREFIX = gcr.io/fluentd-elasticsearch
 | 
			
		||||
IMAGE = fluentd
 | 
			
		||||
TAG = v2.4.0
 | 
			
		||||
 | 
			
		||||
build:
 | 
			
		||||
	docker build --pull -t $(PREFIX)/$(IMAGE):$(TAG) .
 | 
			
		||||
 | 
			
		||||
push:
 | 
			
		||||
	docker push $(PREFIX)/$(IMAGE):$(TAG)
 | 
			
		||||
	gcloud builds submit --tag $(PREFIX)/$(IMAGE):$(TAG)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user