Hi, I've successfuly deployed 2 containers in one pod (php/nginx), images are pulled from gitlab registry using authentication.
Now in another deployment I want to deploy a standard mysql image from dockerhub.
I've used the same syntax without the imagePullSecret node, but I always get: "Error from server (BadRequest): container "mysql" in pod "mysql-6989b4d5d5-w6254" is waiting to start: ContainerCreating".
Here's my deployment file, I'm doing something wrong? (I'm pretty new to k8s).
apiVersion: apps/v1 kind: Deployment metadata: name: mysql labels: app: mvsa tier: mysql spec: replicas: 1 selector: matchLabels: app: mvsa tier: mysql strategy: type: Recreate template: metadata: labels: app: mvsa tier: mysql spec: volumes: - name: pvc-mvsa-db persistentVolumeClaim: claimName: pvc-mvsa-db containers: - name: mysql image: mysql:8.0.18-2 ports: - containerPort: 3306 volumeMounts: - mountPath: /var/lib/mysql name: pvc-mvsa-db resources: requests: memory: "32M" cpu: "4m" limits: memory: "64M" cpu: "4m" env: - name: MYSQL_ROOT_PASSWORD valueFrom: secretKeyRef: name: mvsa-mysql-secret key: mysql_root_password - name: MYSQL_USER valueFrom: secretKeyRef: name: mvsa-mysql-secret key: mysql_user - name: MYSQL_PASSWORD valueFrom: secretKeyRef: name: mvsa-mysql-secret key: mysql_password
kubectlas well as with a few visualizations on the UI. Unfortunately, in testing, it's quite easy for a malicious user to bring the metrics service to a screeching halt with a few well crafted requests... We're hoping to have this sorted soon!
Error creating ingress - networkpolicies.networking.k8s.io is forbidden: User "system:serviceaccount:luno89:luno89-user" cannot create resource "networkpolicies" in API group "networking.k8s.io" in the namespace "luno89"is that suppose to happen? thanks for everyone's patience
user@host:~$ kubectl port-forward <my-pod-name> 8080 error: error upgrading connection: pods "<my-pod-name>" is forbidden: User "system:serviceaccount:robertaramar:robertaramar-user" cannot create resource "pods/portforward" in API group "" in the namespace "robertaramar"
In order to deploy or use Review Apps, KUBE_INGRESS_BASE_DOMAIN variables must be set
Not sure if its just me, but....
kubectl get deployments
I'm guessing the web-app does some cool stuff to make another deployment but appears to not clean up the old deployment all the way? not sure.
I deleted the deployment via kubectl and created it again and everything was fine afterwards but kinda weird
thanks for looking :)