k3s-io / k3s-ansible

Apache License 2.0
1.89k stars 780 forks source link

Extra Manifest delpoyment #244

Closed dereknola closed 8 months ago

dereknola commented 8 months ago

Changes

Testing

Using the Local Path Provisioner Example, placed in repo root extra_manifests: [ "../pvc.yaml", "../pod.yaml" ]

After playbook, see pvc claimed and pod up:

derek@degion:~/rancher/k3s-ansible$ kubectl get pvc
NAME             STATUS   VOLUME                                     CAPACITY   ACCESS MODES   STORAGECLASS   AGE
local-path-pvc   Bound    pvc-f4b486a8-457c-46fe-b98b-a88187150ff1   2Gi        RWO            local-path     71s
derek@degion:~/rancher/k3s-ansible$ kubectl  get pods 
NAME          READY   STATUS    RESTARTS   AGE
volume-test   1/1     Running   0          7m4s

Linked Issues

https://github.com/k3s-io/k3s-ansible/issues/211