From 8ac6e891376605fef90ecdc90d263c1cb1299159 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Twoje=20Imi=C4=99=20Nazwisko?= Date: Wed, 30 Oct 2024 10:46:47 -0400 Subject: [PATCH] image ready k8s --- __build | 2 ++ __log | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ __p | 6 ++++++ __www | 6 ++++++ 4 files changed, 67 insertions(+) create mode 100644 __build create mode 100644 __log create mode 100644 __p create mode 100644 __www diff --git a/__build b/__build new file mode 100644 index 0000000..82338dc --- /dev/null +++ b/__build @@ -0,0 +1,2 @@ +docker build --no-cache -t zoz:latest -f Dockerfile .. + diff --git a/__log b/__log new file mode 100644 index 0000000..7999f1b --- /dev/null +++ b/__log @@ -0,0 +1,53 @@ +Name: zoz +Namespace: default +Priority: 0 +Service Account: default +Node: minikube/192.168.49.2 +Start Time: Wed, 30 Oct 2024 06:50:06 -0400 +Labels: run=zoz +Annotations: +Status: Pending +IP: 10.244.0.5 +IPs: + IP: 10.244.0.5 +Containers: + zoz: + Container ID: + Image: zoz:latest + Image ID: + Port: 3333/TCP + Host Port: 0/TCP + State: Waiting + Reason: ErrImagePull + Ready: False + Restart Count: 0 + Environment: + Mounts: + /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-jdcwn (ro) +Conditions: + Type Status + PodReadyToStartContainers True + Initialized True + Ready False + ContainersReady False + PodScheduled True +Volumes: + kube-api-access-jdcwn: + Type: Projected (a volume that contains injected data from multiple sources) + TokenExpirationSeconds: 3607 + ConfigMapName: kube-root-ca.crt + ConfigMapOptional: + DownwardAPI: true +QoS Class: BestEffort +Node-Selectors: +Tolerations: node.kubernetes.io/not-ready:NoExecute op=Exists for 300s + node.kubernetes.io/unreachable:NoExecute op=Exists for 300s +Events: + Type Reason Age From Message + ---- ------ ---- ---- ------- + Normal Scheduled 31s default-scheduler Successfully assigned default/zoz to minikube + Normal Pulling 17s (x2 over 31s) kubelet Pulling image "zoz:latest" + Warning Failed 15s (x2 over 29s) kubelet Failed to pull image "zoz:latest": Error response from daemon: pull access denied for zoz, repository does not exist or may require 'docker login': denied: requested access to the resource is denied + Warning Failed 15s (x2 over 29s) kubelet Error: ErrImagePull + Normal BackOff 4s (x2 over 28s) kubelet Back-off pulling image "zoz:latest" + Warning Failed 4s (x2 over 28s) kubelet Error: ImagePullBackOff diff --git a/__p b/__p new file mode 100644 index 0000000..39fd1e5 --- /dev/null +++ b/__p @@ -0,0 +1,6 @@ +f() { + sudo docker run --rm -dit --privileged \ + -p 3333:3333 \ + --name "$1" zoz su - user; +}; +f $1 diff --git a/__www b/__www new file mode 100644 index 0000000..837bbd9 --- /dev/null +++ b/__www @@ -0,0 +1,6 @@ +f() { + sudo docker run --rm -dit --privileged \ + -p 3333:3333 \ + --name "$1" zoz +}; +f $1