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

Update k8s example #797

Merged
merged 1 commit into from
Nov 8, 2018
Merged

Update k8s example #797

merged 1 commit into from
Nov 8, 2018

Conversation

ivan4th
Copy link
Contributor

@ivan4th ivan4th commented Nov 7, 2018

The example is updated to make it use "modern" StatefulSet definition
and for compatiblity with CoreDNS in k8s 1.12. Previously, the example
did work except for the very final stage where kubeconfig is set up
for the root user, which was because the script was waiting for DNS
pods to become "ready 3/3" instead of "ready 1/1" which must be used
for CoreDNS. Also, some unneeded options are removed, and ephemeral
flexvolume usage is eliminated in favor of VirtletRootVolumeSize.

Docs page that uses the example: http://virtlet.ivan4th.pro/reference/vm-pod/


This change is Reviewable

The example is updated to make it use "modern" StatefulSet definition
and for compatiblity with CoreDNS in k8s 1.12. Previously, the example
did work except for the very final stage where kubeconfig is set up
for the root user, which was because the script was waiting for DNS
pods to become "ready 3/3" instead of "ready 1/1" which must be used
for CoreDNS. Also, some unneeded options are removed, and ephemeral
flexvolume usage is eliminated in favor of `VirtletRootVolumeSize`.
Copy link
Contributor

@jellonek jellonek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:lgtm:

Reviewable status: 0 of 2 approvals obtained (waiting on @ivan4th)


examples/k8s.yaml, line 86 at r1 (raw file):

    spec:
      nodeSelector:
        extraRuntime: virtlet

I think that we should update rest of examples to do that in the same way, using simple nodeSelector instead of more complex affinitity. Will do that in next PR.

@jellonek jellonek merged commit 76e1021 into master Nov 8, 2018
@jellonek jellonek deleted the ivan4th/update-k8s-example branch November 8, 2018 14:57
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.

2 participants