This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oc create secret generic pull-secret \ | |
| --from-file=.dockerconfigjson=./pull-secret-2.json \ | |
| --type=kubernetes.io/dockerconfigjson | |
| oc secrets link default pull-secret --for=pull |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* src/App.js */ | |
| import React, { useEffect, useState } from 'react' | |
| import Amplify, { API, graphqlOperation } from 'aws-amplify' | |
| import { createTodo } from './graphql/mutations' | |
| import { listTodos } from './graphql/queries' | |
| import awsExports from "./aws-exports"; | |
| Amplify.configure(awsExports); | |
| const initialState = { name: '', description: '' } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 0.0 | |
| Resources: | |
| - TargetService: | |
| Type: AWS::ECS::Service | |
| Properties: | |
| TaskDefinition: "arn:aws:ecs:eu-west-2:1234:task-definition/first-run-task-definition:1" | |
| LoadBalancerInfo: | |
| ContainerName: "sample-app" | |
| ContainerPort: 80 | |
| PlatformVersion: "LATEST" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: argoproj.io/v1alpha1 | |
| kind: ArgoCD | |
| metadata: | |
| namespace: argocd | |
| name: argocd | |
| spec: | |
| server: | |
| route: | |
| enabled: true | |
| rbac: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| oc get dc,svc,is -o json | jq '. | del(.metadata.id, .status, .someotherfieldyouwanttodelete)' | xargs oc create -f - -n mynewnamespace` | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Source: prometheus/templates/server-configmap.yaml | |
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| labels: | |
| component: "my-prometheus" | |
| app: prometheus | |
| release: my-prometheus | |
| chart: prometheus-11.4.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: PersistentVolumeClaim | |
| apiVersion: v1 | |
| metadata: | |
| name: fbench-pv-claim | |
| spec: | |
| storageClassName: thin | |
| accessModes: | |
| - ReadWriteOnce | |
| resources: | |
| requests: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Copyright 2019 Red Hat | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, software | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ######################## | |
| ## Variables | |
| ######################## | |
| variable "environment_name" { | |
| description = "The name of the environment" | |
| } | |
| variable "vpc_id" { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: template.openshift.io/v1 | |
| kind: Template | |
| labels: | |
| template: s2i-camel-app | |
| metadata: | |
| annotations: | |
| description: Spring Boot and Camel QuickStart. This example demonstrates how you | |
| can use Apache Camel with Spring Boot on OpenShift. The quickstart uses Spring | |
| Boot to configure an application which includes a Camel route that triggers | |
| a message every 5th second, and routes the message to a log. |