Created
October 29, 2021 06:22
-
-
Save garygan89/02fb8b76cfb89d483ee605509d3377ec to your computer and use it in GitHub Desktop.
Portainer-Deployment Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| annotations: | |
| deployment.kubernetes.io/revision: "1" | |
| kubectl.kubernetes.io/last-applied-configuration: | | |
| {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"name":"portainer-agent","namespace":"portels":{"app":"portainer-agent"}},"template":{"metadata":{"labels":{"app":"portainer-agent"}},"spec":{"containers":[{"env":,{"name":"AGENT_CLUSTER_ADDR","value":"portainer-agent-headless"},{"name":"KUBERNETES_POD_IP","valueFrom":{"fieldRef":{"f"portainer/agent:latest","imagePullPolicy":"Always","name":"portainer-agent","ports":[{"containerPort":9001,"protocol":"Ter-sa-clusteradmin"}}}} | |
| creationTimestamp: "2021-10-26T04:54:58Z" | |
| generation: 1 | |
| name: portainer-agent | |
| namespace: portainer | |
| resourceVersion: "27434019" | |
| uid: 72f3ef7f-2223-4b43-83b7-c31041cd4868 | |
| spec: | |
| progressDeadlineSeconds: 600 | |
| replicas: 1 | |
| revisionHistoryLimit: 10 | |
| selector: | |
| matchLabels: | |
| app: portainer-agent | |
| strategy: | |
| rollingUpdate: | |
| maxSurge: 25% | |
| maxUnavailable: 25% | |
| type: RollingUpdate | |
| template: | |
| metadata: | |
| creationTimestamp: null | |
| labels: | |
| app: portainer-agent | |
| spec: | |
| containers: | |
| - env: | |
| - name: LOG_LEVEL | |
| value: DEBUG | |
| - name: AGENT_CLUSTER_ADDR | |
| value: portainer-agent-headless | |
| - name: KUBERNETES_POD_IP | |
| valueFrom: | |
| fieldRef: | |
| apiVersion: v1 | |
| fieldPath: status.podIP | |
| image: portainer/agent:latest | |
| imagePullPolicy: Always | |
| name: portainer-agent | |
| ports: | |
| - containerPort: 9001 | |
| protocol: TCP | |
| resources: {} | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| dnsPolicy: ClusterFirst | |
| restartPolicy: Always | |
| schedulerName: default-scheduler | |
| securityContext: {} | |
| serviceAccount: portainer-sa-clusteradmin | |
| serviceAccountName: portainer-sa-clusteradmin | |
| terminationGracePeriodSeconds: 30 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment