VinGarcia

Caddy K8s Deployment

Nov 28th, 2021
939
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4.   annotations:
  5.     deployment.kubernetes.io/revision: "2"
  6.     meta.helm.sh/release-name: caddy
  7.     meta.helm.sh/release-namespace: default
  8.   creationTimestamp: "2021-11-28T13:48:42Z"
  9.   generation: 2
  10.   labels:
  11.     app.kubernetes.io/instance: caddy
  12.     app.kubernetes.io/managed-by: Helm
  13.     app.kubernetes.io/name: caddy-shard
  14.     app.kubernetes.io/version: 1.16.0
  15.     helm.sh/chart: caddy-shard-0.1.3
  16.   name: caddy
  17.   namespace: default
  18.   resourceVersion: "1248168"
  19.   uid: 2a7383b4-a300-41c7-9cd4-02352772f756
  20. spec:
  21.   progressDeadlineSeconds: 600
  22.   replicas: 1
  23.   revisionHistoryLimit: 10
  24.   selector:
  25.     matchLabels:
  26.       app.kubernetes.io/instance: caddy
  27.       app.kubernetes.io/name: caddy-shard
  28.   strategy:
  29.     rollingUpdate:
  30.       maxSurge: 25%
  31.       maxUnavailable: 25%
  32.     type: RollingUpdate
  33.   template:
  34.     metadata:
  35.       creationTimestamp: null
  36.       labels:
  37.         app.kubernetes.io/instance: caddy
  38.         app.kubernetes.io/name: caddy-shard
  39.     spec:
  40.       containers:
  41.       - image: caddy:2.4.6-alpine
  42.         imagePullPolicy: IfNotPresent
  43.         livenessProbe:
  44.           failureThreshold: 3
  45.           httpGet:
  46.             path: /
  47.             port: http
  48.             scheme: HTTP
  49.           periodSeconds: 10
  50.           successThreshold: 1
  51.           timeoutSeconds: 1
  52.         name: caddy-shard
  53.         ports:
  54.         - containerPort: 80
  55.           name: http
  56.           protocol: TCP
  57.         readinessProbe:
  58.           failureThreshold: 3
  59.           httpGet:
  60.             path: /
  61.             port: http
  62.             scheme: HTTP
  63.           periodSeconds: 10
  64.           successThreshold: 1
  65.           timeoutSeconds: 1
  66.         resources: {}
  67.         securityContext: {}
  68.         terminationMessagePath: /dev/termination-log
  69.         terminationMessagePolicy: File
  70.         volumeMounts:
  71.         - mountPath: /etc/caddy/Caddyfile2
  72.           name: config
  73.           subPath: Caddyfile
  74.       dnsPolicy: ClusterFirst
  75.       restartPolicy: Always
  76.       schedulerName: default-scheduler
  77.       securityContext: {}
  78.       serviceAccount: caddy-caddy-shard
  79.       serviceAccountName: caddy-caddy-shard
  80.       terminationGracePeriodSeconds: 30
  81.       volumes:
  82.       - configMap:
  83.           defaultMode: 420
  84.           name: caddy
  85.         name: config
  86. status:
  87.   availableReplicas: 1
  88.   conditions:
  89.   - lastTransitionTime: "2021-11-28T13:48:42Z"
  90.     lastUpdateTime: "2021-11-28T13:50:01Z"
  91.     message: ReplicaSet "caddy-76746dd64c" has successfully progressed.
  92.     reason: NewReplicaSetAvailable
  93.     status: "True"
  94.     type: Progressing
  95.   - lastTransitionTime: "2021-11-28T13:55:01Z"
  96.     lastUpdateTime: "2021-11-28T13:55:01Z"
  97.     message: Deployment has minimum availability.
  98.     reason: MinimumReplicasAvailable
  99.     status: "True"
  100.     type: Available
  101.   observedGeneration: 2
  102.   readyReplicas: 1
  103.   replicas: 1
  104.   updatedReplicas: 1
RAW Paste Data