[[SekikenWiki]] http://yebisupress.dac.co.jp/2016/07/26/kubernetes-1-2-%E4%B8%8A%E3%81%AE%E5%85%A8%E3%83%8E%E3%83%BC%E3%83%89%E4%B8%8A%E3%81%A7%E5%90%8C%E3%81%98%E3%82%B3%E3%83%B3%E3%83%86%E3%83%8A%E3%82%92%E5%8B%95%E3%81%8B%E3%81%99/ ** daemonset [#b6b751d0] 前提:/mnt/k8s/pukiwiki/ は NFS mount apiVersion: extensions/v1beta1 kind: DaemonSet metadata: labels: name: pukiwiki name: pukiwiki spec: template: metadata: labels: app: pukiwiki spec: containers: - name: pukiwiki image: 192.168.1.221:5000/pukiwiki imagePullPolicy: Always ports: - containerPort: 80 hostPort: 8880 volumeMounts: - name: pukiwiki-storage mountPath: /var/www/html volumes: - name: pukiwiki-storage hostPath: path: /mnt/k8s/pukiwiki/