cloudfoundry-attic / loggregator-k8s-deployment

A deployment of loggregator on kubernetes
6 stars 3 forks source link

Fail to run ./deploy.sh: deployments.extensions "syslog-nozzle" not found #13

Closed dennyzhang closed 6 years ago

dennyzhang commented 6 years ago

Hi there

Thanks for effort. I'm trying it. Looks like it bumps into below issue.

Any suggestions to help me out? Thanks!

Note: I'm a 100% newbie to cloudfoundry.

kubo@jumper:~/denny/loggregator-k8s-deployment$ ./deploy.sh
namespace "oratos" configured
configmap "log-cache" unchanged
secret "loggregator-tls-certs" unchanged
service "log-cache-headless" unchanged
service "log-cache-reads" unchanged
service "log-cache-writes" unchanged
service "loggregator-rlp" unchanged
service "loggregator-router" unchanged
daemonset.extensions "loggregator-fluentd" unchanged
deployment.extensions "log-cache-nozzle" unchanged
deployment.extensions "log-cache-scheduler" unchanged
deployment.extensions "loggregator-rlp" unchanged
deployment.extensions "loggregator-router" unchanged
statefulset.apps "log-cache" unchanged
clusterrole.rbac.authorization.k8s.io "pod-reader" configured
clusterrolebinding.rbac.authorization.k8s.io "service-account-pod-reader" configured
statefulset.apps "log-cache" patched
deployment.extensions "log-cache-nozzle" patched
Error from server (NotFound): deployments.extensions "syslog-nozzle" not found
cf-gitbot commented 6 years ago

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/158447865

The labels on this github issue will be updated when the story is started.

dennyzhang commented 6 years ago

Made below changes. Run ./deploy.sh again.

Looks like it starts. Not sure about the consequence yet.

diff --git a/deploy.sh b/deploy.sh
index 9ed8194..604e977 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -25,9 +25,9 @@ function patch_objects {
     patch='{"spec": {"template": {"metadata": {"labels": {"randomversion": "'$RANDOM'"}}}}}'
     kubectl patch statefulset log-cache --namespace oratos --patch "$patch"
     kubectl patch deployment log-cache-nozzle --namespace oratos --patch "$patch"
-    kubectl patch deployment syslog-nozzle --namespace oratos --patch "$patch"
+    # kubectl patch deployment syslog-nozzle --namespace oratos --patch "$patch"
     kubectl patch deployment log-cache-scheduler --namespace oratos --patch "$patch"
-    kubectl patch deployment loggregator-emitter --namespace oratos --patch "$patch"
+    #kubectl patch deployment loggregator-emitter --namespace oratos --patch "$patch"
     kubectl patch deployment loggregator-rlp --namespace oratos --patch "$patch"
     kubectl patch deployment loggregator-router --namespace oratos --patch "$patch"
     kubectl patch daemonset loggregator-fluentd --namespace oratos --patch "$patch"
jasonkeene commented 6 years ago

Ah, yeah. We moved the syslog-nozzle and loggregator-emitter to optional components. I guess because we apply them in all our environments the patch worked for us. We will fix the deploy script.

dennyzhang commented 6 years ago

@jasonkeene , thanks for the quick response.

Yeah, it looks fine. I'm actively exploring it now. Great work!