mirror of https://github.com/kubernetes/kops.git
Merge pull request #5072 from bhack/patch-2
Add hooks example for cachefiled
This commit is contained in:
commit
f470e77139
|
|
@ -424,6 +424,28 @@ spec:
|
|||
image: busybox
|
||||
```
|
||||
|
||||
Install cachefiled
|
||||
|
||||
```
|
||||
spec:
|
||||
# many sections removed
|
||||
hooks:
|
||||
- before:
|
||||
- kubelet.service
|
||||
manifest: |
|
||||
Type=oneshot
|
||||
ExecStart=/sbin/modprobe cachefiles
|
||||
name: cachefiles.service
|
||||
- execContainer:
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- chroot /rootfs apt-get update && chroot /rootfs apt-get install -y cachefilesd
|
||||
&& chroot /rootfs sed -i s/#RUN/RUN/ /etc/default/cachefilesd && chroot /rootfs
|
||||
service cachefilesd restart
|
||||
image: busybox
|
||||
```
|
||||
|
||||
### fileAssets
|
||||
|
||||
FileAssets is an alpha feature which permits you to place inline file content into the cluster and instanceGroup specification. It's desiginated as alpha as you can probably do this via kubernetes daemonsets as an alternative.
|
||||
|
|
|
|||
Loading…
Reference in New Issue