Skip to content

Instantly share code, notes, and snippets.

@bpoland
Created November 9, 2021 00:22
Show Gist options
  • Save bpoland/4a1d951d8a9687cd0fa121ac8621b8d5 to your computer and use it in GitHub Desktop.
Save bpoland/4a1d951d8a9687cd0fa121ac8621b8d5 to your computer and use it in GitHub Desktop.
argo rollouts promote full issue
apiVersion: apps/v1
kind: ReplicaSet
metadata:
annotations:
rollout.argoproj.io/desired-replicas: "5"
rollout.argoproj.io/ephemeral-metadata: '{"annotations":{"ad.datadoghq.com/tags":"{\"kube_rollout\":\"name\",\"role\":\"stable\"}","role":"stable"}}'
rollout.argoproj.io/revision: "254"
rollout.argoproj.io/workload-generation: "254"
creationTimestamp: "2021-11-09T00:00:07Z"
generation: 6
labels:
app: name
app-group: name
rollouts-pod-template-hash: 645bb8897c
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:rollout.argoproj.io/desired-replicas: {}
f:rollout.argoproj.io/ephemeral-metadata: {}
f:rollout.argoproj.io/revision: {}
f:rollout.argoproj.io/workload-generation: {}
f:labels:
.: {}
f:app: {}
f:app-group: {}
f:rollouts-pod-template-hash: {}
f:ownerReferences:
.: {}
k:{"uid":"b23fae81-f046-4d8c-8259-d8d055789fe1"}:
.: {}
f:apiVersion: {}
f:blockOwnerDeletion: {}
f:controller: {}
f:kind: {}
f:name: {}
f:uid: {}
f:spec:
f:minReadySeconds: {}
f:replicas: {}
f:selector: {}
f:template:
f:metadata:
f:annotations:
.: {}
f:ad.datadoghq.com/name.logs: {}
f:ad.datadoghq.com/tags: {}
f:role: {}
f:labels:
.: {}
f:app: {}
f:app-group: {}
f:rollouts-pod-template-hash: {}
f:spec:
f:affinity:
.: {}
f:podAntiAffinity:
.: {}
f:requiredDuringSchedulingIgnoredDuringExecution: {}
f:automountServiceAccountToken: {}
f:containers:
k:{"name":"name"}:
.: {}
f:env:
.: {}
k:{"name":"DOGSTATSD_SOCKET"}:
.: {}
f:name: {}
f:value: {}
f:envFrom: {}
f:image: {}
f:imagePullPolicy: {}
f:lifecycle:
.: {}
f:preStop:
.: {}
f:exec:
.: {}
f:command: {}
f:livenessProbe:
.: {}
f:failureThreshold: {}
f:httpGet:
.: {}
f:path: {}
f:port: {}
f:scheme: {}
f:periodSeconds: {}
f:successThreshold: {}
f:timeoutSeconds: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":5005,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
k:{"containerPort":8080,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
f:readinessProbe:
.: {}
f:failureThreshold: {}
f:httpGet:
.: {}
f:path: {}
f:port: {}
f:scheme: {}
f:periodSeconds: {}
f:successThreshold: {}
f:timeoutSeconds: {}
f:resources:
.: {}
f:limits:
.: {}
f:memory: {}
f:requests:
.: {}
f:cpu: {}
f:memory: {}
f:startupProbe:
.: {}
f:failureThreshold: {}
f:httpGet:
.: {}
f:path: {}
f:port: {}
f:scheme: {}
f:periodSeconds: {}
f:successThreshold: {}
f:timeoutSeconds: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:volumeMounts:
.: {}
k:{"mountPath":"/var/run/datadog"}:
.: {}
f:mountPath: {}
f:mountPropagation: {}
f:name: {}
f:dnsPolicy: {}
f:enableServiceLinks: {}
f:imagePullSecrets:
.: {}
k:{"name":"regcred"}:
.: {}
f:name: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:serviceAccount: {}
f:serviceAccountName: {}
f:shareProcessNamespace: {}
f:terminationGracePeriodSeconds: {}
f:volumes:
.: {}
k:{"name":"datadog-sockets"}:
.: {}
f:hostPath:
.: {}
f:path: {}
f:type: {}
f:name: {}
manager: rollouts-controller
operation: Update
time: "2021-11-09T00:00:07Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:status:
f:availableReplicas: {}
f:fullyLabeledReplicas: {}
f:observedGeneration: {}
f:readyReplicas: {}
f:replicas: {}
manager: kube-controller-manager
operation: Update
time: "2021-11-09T00:02:36Z"
name: name-645bb8897c
namespace: default
ownerReferences:
- apiVersion: argoproj.io/v1alpha1
blockOwnerDeletion: true
controller: true
kind: Rollout
name: name
uid: b23fae81-f046-4d8c-8259-d8d055789fe1
resourceVersion: "553670531"
uid: bc3ddcd8-f191-416c-a4ad-1f74fe65cc92
spec:
minReadySeconds: 30
replicas: 5
selector:
matchLabels:
app: name
app-group: name
rollouts-pod-template-hash: 645bb8897c
template:
metadata:
annotations:
ad.datadoghq.com/name.logs: '[{"source":"name"}]'
ad.datadoghq.com/tags: '{"kube_rollout":"name","role":"stable"}'
role: stable
creationTimestamp: null
labels:
app: name
app-group: name
rollouts-pod-template-hash: 645bb8897c
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app-group: name
topologyKey: kubernetes.io/hostname
automountServiceAccountToken: true
containers:
- env:
- name: DOGSTATSD_SOCKET
value: /var/run/datadog/dsd.socket
envFrom:
- secretRef:
name: name-config
optional: false
image: name:tag
imagePullPolicy: Always
lifecycle:
preStop:
exec:
command:
- /bin/sh
- -c
- sleep 10
livenessProbe:
failureThreshold: 10
httpGet:
path: /_live
port: http
scheme: HTTP
periodSeconds: 30
successThreshold: 1
timeoutSeconds: 5
name: name
ports:
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 5005
name: jvm-debug
protocol: TCP
readinessProbe:
failureThreshold: 2
httpGet:
path: /_ready
port: http
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 5
resources:
limits:
memory: 20Gi
requests:
cpu: "4"
memory: 20Gi
startupProbe:
failureThreshold: 30
httpGet:
path: /_live
port: http
scheme: HTTP
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 3
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
volumeMounts:
- mountPath: /var/run/datadog
mountPropagation: None
name: datadog-sockets
dnsPolicy: ClusterFirst
enableServiceLinks: true
imagePullSecrets:
- name: pullsecret
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
serviceAccount: name
serviceAccountName: name
shareProcessNamespace: false
terminationGracePeriodSeconds: 90
volumes:
- hostPath:
path: /var/run/datadog
type: ""
name: datadog-sockets
status:
availableReplicas: 5
fullyLabeledReplicas: 5
observedGeneration: 6
readyReplicas: 5
replicas: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment