That's our RC:
$ cat ws-rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: webserver-rc
spec:
replicas: 5
selector:
That's our RC:
$ cat ws-rc.yaml
apiVersion: v1
kind: ReplicationController
metadata:
name: webserver-rc
spec:
replicas: 5
selector:
| #!/bin/sh | |
| workdir=$(mktemp --directory) | |
| trap "rm --force --recursive ${workdir}" SIGINT SIGTERM EXIT | |
| cat >"${workdir}/cloud-config.yml" <<EOF | |
| #cloud-config | |
| coreos: | |
| etcd: |
| #cloud-config | |
| ssh_authorized_keys: | |
| - ssh-rsa key | |
| write_files: | |
| - path: /opt/cloud-config.yml | |
| permissions: 0644 | |
| content: | | |
| #cloud-config |
| build date | Sun/Oracle JDK Version | OpenJDK Version | HotSpot VM Version |
|---|---|---|---|
| 2006-11-29 | 1.6.0-b105 | 1.6.0-b105 | |
| 2007-03-14 | 1.6.0_01-b06 | 1.6.0_01-b06 | |
| 2007-06-22 | 1.6.0_02-b05 | 1.6.0_02-b05 | |
| 2007-09-24 | 1.6.0_03-b05 | 1.6.0_03-b05 | |
| 2007-12-14 | 1.6.0_04-b12 | 10.0-b19 |
| - What do Etcd, Consul, and Zookeeper do? | |
| - Service Registration: | |
| - Host, port number, and sometimes authentication credentials, protocols, versions | |
| numbers, and/or environment details. | |
| - Service Discovery: | |
| - Ability for client application to query the central registry to learn of service location. | |
| - Consistent and durable general-purpose K/V store across distributed system. | |
| - Some solutions support this better than others. | |
| - Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state. | |
| - Centralized locking can be based on this K/V store. |
| --- | |
| # ^^^ YAML documents must begin with the document separator "---" | |
| # | |
| #### Example docblock, I like to put a descriptive comment at the top of my | |
| #### playbooks. | |
| # | |
| # Overview: Playbook to bootstrap a new host for configuration management. | |
| # Applies to: production | |
| # Description: | |
| # Ensures that a host is configured for management with Ansible. |
| var gulp = require('gulp'); | |
| var rev = require('gulp-rev-all'); | |
| var css = require('gulp-minify-css'); | |
| var img = require('gulp-imagemin'); | |
| var rs = require('run-sequence'); | |
| var del = require('del'); | |
| gulp.task('image', function () { | |
| return gulp.src('image.jpeg') | |
| .pipe(img({ progressive: false })) |
| #!/bin/sh | |
| # | |
| # <%=@service%> This shell script takes care of starting and stopping | |
| # the <%=@service%> service. | |
| # | |
| # chkconfig: 2345 65 35 | |
| # description: <%=@description%> | |
| # | |
| SERVICE=<%=@service%> |
| - name: ensure file exists at path | |
| shell: rsync -ci /source/path /destination/path | |
| register: rsync_result | |
| changed_when: "rsync_result.stdout != ''" |
| package vmarcinko.undertow; | |
| import io.undertow.Handlers; | |
| import io.undertow.Undertow; | |
| import io.undertow.server.HttpHandler; | |
| import io.undertow.server.handlers.PathHandler; | |
| import io.undertow.server.handlers.RedirectHandler; | |
| import io.undertow.server.handlers.resource.FileResourceManager; | |
| import io.undertow.servlet.Servlets; | |
| import io.undertow.servlet.api.DeploymentInfo; |