Skip to content

Instantly share code, notes, and snippets.

View salaboy's full-sized avatar
🤓
Polyglot + Cloud + Kubernetes + Knative + Dapr

salaboy salaboy

🤓
Polyglot + Cloud + Kubernetes + Knative + Dapr
View GitHub Profile
salaboy> k logs -f -n vcluster-dapr-enabled dapr-enabled-0 syncer
I0316 11:15:40.014430 1 start.go:237] Start Plugins Manager...
I0316 11:15:40.015160 1 plugin.go:164] Plugin server listening on localhost:10099
I0316 11:15:40.015584 1 start.go:249] Using physical cluster at https://10.96.0.1:443
I0316 11:15:40.027669 1 start.go:280] Can connect to virtual cluster with version v1.25.5+k3s1
I0316 11:15:40.029815 1 fake_syncer.go:286] GetNodeHost(): translating nodename "kind-control-plane" into hostname: "kind-control-plane.dapr-enabled.vcluster-dapr-enabled.nodes.vcluster.com"
I0316 11:15:40.129478 1 plugins.go:158] Loaded 1 mutating admission controller(s) successfully in the following order: MutatingAdmissionWebhook.
I0316 11:15:40.129505 1 plugins.go:161] Loaded 1 validating admission controller(s) successfully in the following order: ValidatingAdmissionWebhook.
I0316 11:15:40.129805 1 register.go:95] Start persistentvolumeclaims sync controller
I0316 11:15
salaboy> k logs -f -n vcluster-dapr-enabled dapr-enabled-0
Defaulted container "vcluster" out of: vcluster, syncer
time="2023-03-16T09:55:37Z" level=info msg="Starting k3s v1.25.5+k3s1 (48e5d2af)"
time="2023-03-16T09:55:37Z" level=info msg="Configuring sqlite3 database connection pooling: maxIdleConns=2, maxOpenConns=0, connMaxLifetime=0s"
time="2023-03-16T09:55:37Z" level=info msg="Configuring database table schema and indexes, this may take a moment..."
time="2023-03-16T09:55:37Z" level=info msg="Database tables and indexes are up to date"
time="2023-03-16T09:55:37Z" level=info msg="Kine available at unix://kine.sock"
time="2023-03-16T09:55:37Z" level=info msg="generated self-signed CA certificate CN=k3s-client-ca@1678960537: notBefore=2023-03-16 09:55:37.267606091 +0000 UTC notAfter=2033-03-13 09:55:37.267606091 +0000 UTC"
time="2023-03-16T09:55:37Z" level=info msg="certificate CN=system:admin,O=system:masters signed by CN=k3s-client-ca@1678960537: notBefore=2023-03-16 09:55:37 +0000 UTC notAfter=2024-03-
ERROR: failed to initialize analyzer: getting previous image: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": dial unix /var/run/docker.sock: connect: permission denied
Error: executing lifecycle: failed with status code: 1
app.get("/", (req, res) => {
TodoTask.find({}, (err, tasks) => {
if (err) throw err;
res.render("todo.ejs", { todoTasks: tasks });
});
});
mongoose.connect(process.env.DB_CONNECT, { useNewUrlParser: true }, (err) => {
if (err) throw err;
console.log("Connected to db!");
app.listen(3000, () => console.log("Server Up and running"));
});
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
level=error ts=2022-06-26T18:48:38.289979926Z caller=klog.go:116 component=k8s_client_runtime func=ErrorDepth msg="pkg/mod/k8s.io/client-go@v0.24.1/tools/cache/reflector.go:167: Failed to watch *v1.Prometheus: failed to list *v1.Prometheus: the server could not find the requested resource (get prometheuses.monitoring.coreos.com)"
level=warn ts=2022-06-26T18:48:41.066060458Z caller=operator.go:415 component=prometheusoperator informer=Prometheus msg="cache sync not yet completed"
Fatal error: org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of org.springframework.util.unit.DataSize are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use --trace-object-instantiation=org.springframework.util.unit.DataSize.
{
"Sessions": [{
"SessionId": "game-6d7df5d8-d161-49de-a352-e039d35dd4c5",
"Nickname": "silly_poitras7",
"AccumulatedScore": 75,
"LastLevel": "kubeconeu-question-5",
"Selected": false
}, {
"SessionId": "game-50d31d2d-22bb-417f-b4ee-67393ae523a2",
"Nickname": "zealous_mirzakhani3",