Skip to content

Instantly share code, notes, and snippets.

@tyrion70
Last active November 1, 2020 19:12
Show Gist options
  • Select an option

  • Save tyrion70/b48dac85b2309551bd76c80fed23b435 to your computer and use it in GitHub Desktop.

Select an option

Save tyrion70/b48dac85b2309551bd76c80fed23b435 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: DaemonSet
metadata:
annotations:
deprecated.daemonset.template.generation: "12"
field.cattle.io/creatorId: user-nbkb6
field.cattle.io/publicEndpoints: '[{"port":30952,"protocol":"TCP","serviceName":"adapters:${ADAPTER}-nodeport","allNodes":true},{"addresses":["10.141.141.32"],"port":80,"protocol":"HTTP","serviceName":"adapters:${ADAPTER}-nodeport","ingressName":"adapters:${ADAPTER}","hostname":"${ADAPTER}.rancher.cinternal.com","allNodes":false}]'
creationTimestamp: "2020-07-20T07:26:07Z"
generation: 8
labels:
cattle.io/creator: norman
workload.user.cattle.io/workloadselector: daemonSet-bridges-${ADAPTER}
managedFields:
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
.: {}
f:deprecated.daemonset.template.generation: {}
f:field.cattle.io/creatorId: {}
f:labels:
.: {}
f:cattle.io/creator: {}
f:workload.user.cattle.io/workloadselector: {}
f:spec:
f:revisionHistoryLimit: {}
f:selector:
f:matchLabels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:template:
f:metadata:
f:annotations:
.: {}
f:field.cattle.io/ports: {}
f:labels:
.: {}
f:workload.user.cattle.io/workloadselector: {}
f:spec:
f:containers:
k:{"name":"${ADAPTER}"}:
.: {}
f:env:
.: {}
k:{"name":"API_KEY"}:
.: {}
f:name: {}
f:value: {}
f:imagePullPolicy: {}
f:livenessProbe:
.: {}
f:failureThreshold: {}
f:initialDelaySeconds: {}
f:periodSeconds: {}
f:successThreshold: {}
f:tcpSocket:
.: {}
f:port: {}
f:timeoutSeconds: {}
f:name: {}
f:ports:
.: {}
k:{"containerPort":8080,"protocol":"TCP"}:
.: {}
f:containerPort: {}
f:name: {}
f:protocol: {}
f:readinessProbe:
.: {}
f:failureThreshold: {}
f:initialDelaySeconds: {}
f:periodSeconds: {}
f:successThreshold: {}
f:tcpSocket:
.: {}
f:port: {}
f:timeoutSeconds: {}
f:resources: {}
f:securityContext:
.: {}
f:allowPrivilegeEscalation: {}
f:privileged: {}
f:readOnlyRootFilesystem: {}
f:runAsNonRoot: {}
f:stdin: {}
f:terminationMessagePath: {}
f:terminationMessagePolicy: {}
f:tty: {}
f:dnsPolicy: {}
f:restartPolicy: {}
f:schedulerName: {}
f:securityContext: {}
f:terminationGracePeriodSeconds: {}
f:updateStrategy:
f:rollingUpdate:
.: {}
f:maxUnavailable: {}
f:type: {}
manager: kubectl
operation: Update
time: "2020-07-20T07:26:07Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:metadata:
f:annotations:
f:field.cattle.io/publicEndpoints: {}
f:kubectl.kubernetes.io/last-applied-configuration: {}
f:spec:
f:template:
f:metadata:
f:annotations:
f:cattle.io/timestamp: {}
f:spec:
f:containers:
k:{"name":"${ADAPTER}"}:
f:image: {}
manager: Go-http-client
operation: Update
time: "2020-07-21T13:31:14Z"
- apiVersion: apps/v1
fieldsType: FieldsV1
fieldsV1:
f:status:
f:currentNumberScheduled: {}
f:desiredNumberScheduled: {}
f:numberAvailable: {}
f:numberMisscheduled: {}
f:numberReady: {}
f:observedGeneration: {}
f:updatedNumberScheduled: {}
manager: k3s
operation: Update
time: "2020-07-21T13:32:26Z"
name: ${ADAPTER}
namespace: adapters
selfLink: /apis/apps/v1/namespaces/adapters/daemonsets/${ADAPTER}
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
workload.user.cattle.io/workloadselector: daemonSet-bridges-${ADAPTER}
template:
metadata:
annotations:
cattle.io/timestamp: "2020-07-21T13:31:14Z"
field.cattle.io/ports: '[[{"containerPort":8080,"dnsName":"${ADAPTER}-nodeport","hostPort":0,"kind":"NodePort","name":"8080tcp01","protocol":"TCP","sourcePort":0}]]'
creationTimestamp: null
labels:
workload.user.cattle.io/workloadselector: daemonSet-bridges-${ADAPTER}
spec:
containers:
- env:
- name: API_KEY
value: ${API_KEY}
- name: CACHE_ENABLED
value: "true"
- name: CACHE_MAX_AGE
value: "60000"
- name: CACHE_REDIS_HOST
value: 10.43.242.168
- name: CACHE_REDIS_PASSWORD
value: CFBC#p]j79W[k6<>
- name: CACHE_TYPE
value: redis
- name: LOG_LEVEL
value: debug
- name: CACHE_KEY_GROUP
value: ${ADAPTER}_CACHE_GROUP
image: docker.cinternal.com/${ADAPTER}-adapter:${VERSION}
imagePullPolicy: Always
livenessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 2
successThreshold: 1
tcpSocket:
port: 8080
timeoutSeconds: 2
name: ${ADAPTER}
ports:
- containerPort: 8080
name: 8080tcp01
protocol: TCP
readinessProbe:
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 2
successThreshold: 2
tcpSocket:
port: 8080
timeoutSeconds: 2
resources: {}
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: false
runAsNonRoot: false
stdin: true
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
tty: true
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30
updateStrategy:
rollingUpdate:
maxUnavailable: 1
type: RollingUpdate
status:
currentNumberScheduled: 3
desiredNumberScheduled: 3
numberAvailable: 3
numberMisscheduled: 0
numberReady: 3
observedGeneration: 8
updatedNumberScheduled: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment