namespaces #3

Merged
kleph merged 5 commits from namespaces into master 2020-02-22 03:20:52 +01:00
3 changed files with 5 additions and 16 deletions
Showing only changes of commit 46ccd88278 - Show all commits

View file

@ -61,10 +61,10 @@ steps:
kubernetes_token: kubernetes_token:
from_secret: kubectl_token from_secret: kubectl_token
commands: commands:
- kubectl get pods - kubectl get pods --namespace=beer
- kubectl get deployments - kubectl get deployments --namespace=beer
- kubectl get svc - kubectl get svc --namespace=beer
- kubectl apply -f kube/beer-deployment.yaml - kubectl apply -f kube/beer-deployment.yaml --namespace=beer
depends_on: depends_on:
- build - build

View file

@ -5,4 +5,3 @@ metadata:
name: beer name: beer
labels: labels:
name: beer name: beer

View file

@ -10,7 +10,7 @@ apiVersion: rbac.authorization.k8s.io/v1
kind: Role kind: Role
metadata: metadata:
name: beer-deploy-role name: beer-deploy-role
namespace: beer # Should be namespace you are granting access to namespace: beer
rules: rules:
- apiGroups: ["*"] - apiGroups: ["*"]
resources: ["*"] resources: ["*"]
@ -29,13 +29,3 @@ subjects:
- namespace: beer - namespace: beer
kind: ServiceAccount kind: ServiceAccount
name: beer-deploy 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