Sziasztok,
probalok Deploy-t kesziteni egy adott namespace-be.
Ezeket sikerult eddig hozzaadnom bill role objektumaba.
root@server:~/test# kubectl describe role bill -n brown-fox
Name: bill
Labels: <none>
Annotations: <none>
PolicyRule:
Resources Non-Resource URLs Resource Names Verbs
--------- ----------------- -------------- -----
deployments [] [] [create get update list watch patch delete]
namespaces [] [] [create get update list watch patch delete]
nodes [] [] [create get update list watch patch delete]
pods [] [] [create get update list watch patch delete]
replicasets [] [] [create get update list watch patch delete]
services [] [] [create get update list watch patch delete]
deployments.apps [] [] [create get update list watch patch delete]
namespaces.apps [] [] [create get update list watch patch delete]
nodes.apps [] [] [create get update list watch patch delete]
pods.apps [] [] [create get update list watch patch delete]
replicasets.apps [] [] [create get update list watch patch delete]
services.apps [] [] [create get update list watch patch delete]
deployments.extensions [] [] [create get update list watch patch delete]
namespaces.extensions [] [] [create get update list watch patch delete]
nodes.extensions [] [] [create get update list watch patch delete]
pods.extensions [] [] [create get update list watch patch delete]
replicasets.extensions [] [] [create get update list watch patch delete]
services.extensions [] [] [create get update list watch patch delete]
root@server:~/test#
Kerdesek:
Futtathato egyetlen rendszeren a deploy tobb replikaja?
Milyen objektum hianyzik meg ahhoz, hogy az alabbi deploy lefusson hiba nelkul?
root@server:~/test# cat <<EOF | kubectl apply -f -
> apiVersion: v1
> kind: Deploy
> metadata:
> name: nginx2
> namespace: brown-fox
> spec:
> replicas: 3
> containers:
> - name: nginx3-cont
> image: nginx:1.14.2
> ports:
> - containerPort: 80
> EOF
error: resource mapping not found for name: "nginx2" namespace: "brown-fox" from "STDIN": no matches for kind "Deploy" in version "v1"
ensure CRDs are installed first
root@server:~/test#
UPDATE:
apiVersion: app/v1
kind: Deployment
sem segitett.
error: resource mapping not found for name: "nginx2" namespace: "brown-fox" from "STDIN": no matches for kind "Deployment" in version "app/v1"
ensure CRDs are installed first
Koszonom a segitseget.
Ardi