namespaces #3
3 changed files with 5 additions and 16 deletions
|
@ -61,10 +61,10 @@ steps:
|
|||
kubernetes_token:
|
||||
from_secret: kubectl_token
|
||||
commands:
|
||||
- kubectl get pods
|
||||
- kubectl get deployments
|
||||
- kubectl get svc
|
||||
- kubectl apply -f kube/beer-deployment.yaml
|
||||
- kubectl get pods --namespace=beer
|
||||
- kubectl get deployments --namespace=beer
|
||||
- kubectl get svc --namespace=beer
|
||||
- kubectl apply -f kube/beer-deployment.yaml --namespace=beer
|
||||
|
||||
depends_on:
|
||||
- build
|
||||
|
|
|
@ -5,4 +5,3 @@ metadata:
|
|||
name: beer
|
||||
labels:
|
||||
name: beer
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ apiVersion: rbac.authorization.k8s.io/v1
|
|||
kind: Role
|
||||
metadata:
|
||||
name: beer-deploy-role
|
||||
namespace: beer # Should be namespace you are granting access to
|
||||
namespace: beer
|
||||
rules:
|
||||
- apiGroups: ["*"]
|
||||
resources: ["*"]
|
||||
|
@ -29,13 +29,3 @@ subjects:
|
|||
- namespace: beer
|
||||
kind: ServiceAccount
|
||||
name: beer-deploy
|
||||
|
||||
#---
|
||||
#ApiVersion: v1
|
||||
#Kind: Secret
|
||||
#Metadata:
|
||||
# name: beer-deploy-secret
|
||||
# annotations:
|
||||
# kubernetes.io/service-account.name: beer-deploy
|
||||
#Type: kubernetes.io/service-account-token
|
||||
|
||||
|
|
Loading…
Reference in a new issue