Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save alena1108/2b1f72fbbcd7bf391ec07d779ff27fea to your computer and use it in GitHub Desktop.

Select an option

Save alena1108/2b1f72fbbcd7bf391ec07d779ff27fea to your computer and use it in GitHub Desktop.
clusteragent
apiVersion: apps/v1beta2
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"extensions/v1beta1","kind":"Deployment","metadata":{"annotations":{},"name":"cattle-cluster-agent","namespace":"cattle-system"},"spec":{"selector":{"matchLabels":{"app":"cattle-cluster-agent"}},"template":{"metadata":{"labels":{"app":"cattle-cluster-agent"}},"spec":{"affinity":{"nodeAffinity":{"requiredDuringSchedulingIgnoredDuringExecution":{"nodeSelectorTerms":[{"matchExpressions":[{"key":"beta.kubernetes.io/os","operator":"NotIn","values":["windows"]}]}]}}},"containers":[{"env":[{"name":"CATTLE_SERVER","value":"https://192.81.212.173"},{"name":"CATTLE_CA_CHECKSUM","value":"376619e8c861a8fa151646c3faeb31980dcf4c2f967fcc1364352bf5c2209f6d"},{"name":"CATTLE_CLUSTER","value":"true"},{"name":"CATTLE_K8S_MANAGED","value":"true"}],"image":"rancher/rancher-agent:v2.2.2","imagePullPolicy":"IfNotPresent","name":"cluster-register","volumeMounts":[{"mountPath":"/cattle-credentials","name":"cattle-credentials","readOnly":true}]}],"serviceAccountName":"cattle","volumes":[{"name":"cattle-credentials","secret":{"secretName":"cattle-credentials-bc5be5e"}}]}}}}
creationTimestamp: "2019-05-16T22:13:36Z"
generation: 1
labels:
app: cattle-cluster-agent
name: cattle-cluster-agent
namespace: cattle-system
resourceVersion: "898"
selfLink: /apis/apps/v1beta2/namespaces/cattle-system/deployments/cattle-cluster-agent
uid: da172fb9-7827-11e9-a3e3-7a3b4fbdf686
spec:
progressDeadlineSeconds: 2147483647
replicas: 1
revisionHistoryLimit: 2147483647
selector:
matchLabels:
app: cattle-cluster-agent
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: cattle-cluster-agent
spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: beta.kubernetes.io/os
operator: NotIn
values:
- windows
containers:
- env:
- name: CATTLE_SERVER
value: https://192.81.212.173
- name: CATTLE_CA_CHECKSUM
value: 376619e8c861a8fa151646c3faeb31980dcf4c2f967fcc1364352bf5c2209f6d
- name: CATTLE_CLUSTER
value: "true"
- name: CATTLE_K8S_MANAGED
value: "true"
image: rancher/rancher-agent:v2.2.2
imagePullPolicy: IfNotPresent
name: cluster-register
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /cattle-credentials
name: cattle-credentials
readOnly: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: cattle
serviceAccountName: cattle
terminationGracePeriodSeconds: 30
volumes:
- name: cattle-credentials
secret:
defaultMode: 420
secretName: cattle-credentials-bc5be5e
status:
availableReplicas: 1
conditions:
- lastTransitionTime: "2019-05-16T22:13:36Z"
lastUpdateTime: "2019-05-16T22:13:36Z"
message: Deployment has minimum availability.
reason: MinimumReplicasAvailable
status: "True"
type: Available
observedGeneration: 1
readyReplicas: 1
replicas: 1
updatedReplicas: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment