
while the onehttpd image is somewhat smaller, thttpd seems like a slightly more mature project.
32 lines
715 B
YAML
32 lines
715 B
YAML
#cloud-config
|
|
merge_how: dict(recurse_array)+list(append)
|
|
write_files:
|
|
- path: /etc/kubernetes/examples/web.pod
|
|
owner: "root:root"
|
|
permissions: "0644"
|
|
content: |
|
|
kind: Pod
|
|
apiVersion: v1beta1
|
|
labels:
|
|
name: web
|
|
desiredState:
|
|
manifest:
|
|
version: v1beta1
|
|
id: web
|
|
containers:
|
|
- name: web
|
|
image: larsks/thttpd
|
|
ports:
|
|
- containerPort: 80
|
|
- path: /etc/kubernetes/examples/web.service
|
|
owner: "root:root"
|
|
permissions: "0644"
|
|
content: |
|
|
kind: Service
|
|
apiVersion: v1beta1
|
|
id: web
|
|
port: 8000
|
|
selector:
|
|
name: web
|
|
containerPort: 80
|