Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extra Manifest delpoyment #244

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Extra Manifest delpoyment #244

merged 3 commits into from
Nov 10, 2023

Conversation

dereknola
Copy link
Member

Changes

  • Adds a new optional var extra_manifests. This list contains manifests that will be deploy on K3s startup. Utilizes K3s Auto Deploy Manifest feature.

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

#211

Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
Signed-off-by: Derek Nola <derek.nola@suse.com>
@dereknola dereknola merged commit e01a8a2 into master Nov 10, 2023
2 checks passed
@dereknola dereknola deleted the manifest_delpoyment branch November 13, 2023 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant