Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG REPORT: failed to build on kustomize 3.0.0. #1318

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions examples/patches-no-matches/base/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: "k8s-sidecar-injector-prod"
namespace: "kube-system"
labels:
k8s-app: "k8s-sidecar-injector"
track: "prod"
spec:
replicas: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
k8s-app: "k8s-sidecar-injector"
track: "prod"
spec:
serviceAccountName: k8s-sidecar-injector
volumes:
- name: secrets
secret:
secretName: k8s-sidecar-injector
containers:
- name: "k8s-sidecar-injector"
imagePullPolicy: Always
image: tumblr/k8s-sidecar-injector:latest
command: ["entrypoint.sh"]
args: []
ports:
- name: https
containerPort: 9443
- name: http-metrics
containerPort: 9000
volumeMounts:
- name: secrets
mountPath: /var/lib/secrets
livenessProbe:
httpGet:
scheme: HTTPS
path: /health
port: https
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 3
resources:
requests:
cpu: "0.5"
memory: 1Gi
limits:
cpu: "0.5"
memory: 2Gi
env:
- name: "TLS_CERT_FILE"
value: "/var/lib/secrets/sidecar-injector.crt"
- name: "TLS_KEY_FILE"
value: "/var/lib/secrets/sidecar-injector.key"
- name: "LOG_LEVEL"
value: "2"
- name: "CONFIG_DIR"
value: "conf/"
- name: "CONFIGMAP_LABELS"
value: "app=k8s-sidecar-injector"
4 changes: 4 additions & 0 deletions examples/patches-no-matches/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kind: Kustomization
apiVersion: kustomize.config.k8s.io/v1beta1
resources:
- deployment.yaml
6 changes: 6 additions & 0 deletions examples/patches-no-matches/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- base
patches:
- patches.yaml
14 changes: 14 additions & 0 deletions examples/patches-no-matches/patches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: "k8s-sidecar-injector-prod"
spec:
template:
spec:
containers:
- name: "k8s-sidecar-injector"
env:
- name: "TLS_CERT_FILE"
value: "/var/lib/secrets/tls.crt"
- name: "TLS_KEY_FILE"
value: "/var/lib/secrets/tls.key"