Skip to content

Instantly share code, notes, and snippets.

@michalpenka
Created April 19, 2020 08:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michalpenka/1833e39631c2c9005d9362046b0c6801 to your computer and use it in GitHub Desktop.
Save michalpenka/1833e39631c2c9005d9362046b0c6801 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: app-azure-pipelines-agent
namespace: azure-pipelines-agent
spec:
replicas: 1
selector:
matchLabels:
app: app-azure-pipelines-agent
template:
metadata:
labels:
app: app-azure-pipelines-agent
spec:
containers:
- name: cnt-azure-pipelines-agent
image: michalpenka/azure-pipelines-agent:2.166.2
imagePullPolicy: IfNotPresent
env:
- name: AZP_URL
valueFrom:
secretKeyRef:
name: sec-azure-pipelines-agent
key: AZP_URL
- name: AZP_TOKEN
valueFrom:
secretKeyRef:
name: sec-azure-pipelines-agent
key: AZP_TOKEN
- name: AZP_AGENT_NAME
value: myKubeAgent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment