Skip to content
This repository was archived by the owner on Feb 5, 2020. It is now read-only.

run TNC as a static pod before cluster having state#3077

Merged
squat merged 4 commits intocoreos:masterfrom
enxebre:tnc-pod
Mar 12, 2018
Merged

run TNC as a static pod before cluster having state#3077
squat merged 4 commits intocoreos:masterfrom
enxebre:tnc-pod

Conversation

@enxebre
Copy link
Contributor

@enxebre enxebre commented Mar 7, 2018

This needs the TNC image to be public as there's no state for holding secrets at this time. Fix INST-935

@coreosbot
Copy link

Can one of the admins verify this patch?

@enxebre
Copy link
Contributor Author

enxebre commented Mar 7, 2018

cc @thorfour @alexsomesan @squat

@enxebre enxebre mentioned this pull request Mar 7, 2018
@thorfour
Copy link
Contributor

thorfour commented Mar 7, 2018

@enxebre tnc dev has been made public.

@enxebre
Copy link
Contributor Author

enxebre commented Mar 8, 2018

ok to test

namespace: kube-system
labels:
k8s-app: tectonic-node-controller
managed-by-channel-operator: "true"
Copy link
Contributor

Choose a reason for hiding this comment

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

This static pod is not managed by the channel operator

- name: cluster-config
hostPath:
path: /opt/tectonic/tnc-config
nodeSelector:
Copy link
Contributor

Choose a reason for hiding this comment

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

A static pod does not need a node selector; it is manually scheduled

nodeSelector:
node-role.kubernetes.io/master: ""
tolerations:
- key: "node-role.kubernetes.io/master"
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure the toleration is required? I suspect this is not needed for static pods

- key: "node-role.kubernetes.io/master"
operator: "Exists"
effect: "NoSchedule"

Copy link
Contributor

Choose a reason for hiding this comment

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

Extra newline

/usr/bin/aws --region="$REGION" s3 cp /tmp/assets.zip s3://"$LOCATION/ign/v1/role/master"
'
# Remove TNC static pod
rm /etc/kubernetes/manifests/tectonic-node-controller-pod.yaml
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is a little abusive of the rm-assets script, which is only concerned with removing assets from object storage. Until we create the cleanup service, I think this would be a better fit for the end of the tectonic service, which is responsible for launching all tectonic components. This way the removal of the static pod is more directly coupled with the creation of the operators

@squat
Copy link
Contributor

squat commented Mar 8, 2018

I saw that you briefly posted the golang code enabling the etcd step. Will that come in a separate PR?

@enxebre
Copy link
Contributor Author

enxebre commented Mar 8, 2018

Hey @squat yeah temporary mixed the commits from #3079

@enxebre
Copy link
Contributor Author

enxebre commented Mar 8, 2018

@squat 7bdc972 and 1dcfc4c should get the tests green PTAL

@squat squat merged commit 65f8a40 into coreos:master Mar 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants